XL Fortran for AIX 8.1

Language Reference


MODULO(A, P)

Modulo function.

A
must be of type integer or real.

P
must be of the same type and kind type parameter as A.

Class

Elemental function

Result Type and Attributes

Same as A.

Result Value

Examples

MODULO (8, 5) has the value 3.
MODULO (-8, 5) has the value 2.
MODULO (8, -5) has the value -2.
MODULO (-8, -5) has the value -3.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]