MOD

The MOD function returns the remainder when a1 is divided by a2.
MOD(a1,a2) = a1 - int(a1/a2) * a2

Format

MOD(a1,a2)

Arguments

 
a1
Any valid function expression.
a2
Any valid non-zero function expression.
 
Caution:  
The MOD function is generally discontinuous. Use this function expression with care when you are specifying force or motion input.

Examples

MOD(45,16)=13
See other FORTRAN 77 intrinsic functions available.