MOD(3F-SysV) RISC/os Reference Manual MOD(3F-SysV)
NAME
mod, amod, dmod - Fortran remaindering intrinsic functions
SYNOPSIS
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
mod returns the integer remainder of its first argument
divided by its second argument. 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.
Printed 1/15/91 Page 1