Next: , Previous: MinVal Intrinsic, Up: Table of Intrinsic Functions


8.11.9.194 Mod Intrinsic

     Mod(A, P)

Mod: INTEGER or REAL function, the exact type being the result of cross-promoting the types of all the arguments.

A: INTEGER or REAL; scalar; INTENT(IN).

P: INTEGER or REAL; scalar; INTENT(IN).

Intrinsic groups: (standard FORTRAN 77).

Description:

Returns remainder calculated as:

     A - (INT(A / P) * P)

P must not be zero.