Description: | Returns the modulo of the arguments. | ||
Class: | Elemental function; Generic | ||
Arguments: | A | Must be of type integer or real. | |
P | Must have the same type and kind parameters as A. | ||
Results: | The result type is the same as A. The
result value depends on the type of A, as follows:
|
Examples
MODULO (7, 3) has the value 1.
MODULO (9, -6) has the value -3.
MODULO (-9, 6) has the value 3.