mod(3f)
NAME
mod, amod, dmod − Fortran remaindering intrinsic functions
SYNTAX
integer i, j, k
real r1, r2, r3
double precision dp1, dp2, dp3
k = mod(i, j)
r3 = amod(r1, r2)
r3 = mod(r1, r2)
dp3 = dmod(dp1, dp2)
dp3 = mod(dp1, dp2)
DESCRIPTION
The mod function returns the integer remainder of its first argument divided by its second argument. Both amod and dmod return, respectively, the real and double-precision whole number remainder of the integer division of their two arguments. The generic version mod will return the data type of its arguments.