MOD(3F) MOD(3F)
mod, imod, jmod, amod, dmod, qmod - FORTRAN remaindering intrinsic
functions
integer i, j, k
integer*2 ii1, ii2, ii3
integer*4 ji1, ji2, ji3
real r1, r2, r3
double precision dp1, dp2, dp3
real*16 qp1, qp2, qp3
k = mod(i, j)
ii3 = imod(ii1, ii2)
ii3 = mod(ii1, ii2)
ji3 = jmod(ji1, ji2)
ji3 = mod(ji1, ji2)
r3 = amod(r1, r2)
r3 = mod(r1, r2)
dp3 = dmod(dp1, dp2)
dp3 = mod(dp1, dp2)
qp3 = qmod(qp1, qp2)
qp3 = mod(qp1, qp2)
mod returns the integer remainder of its first argument divided by its
second argument. imod returns the integer*2 remainder of its two
integer*2 arguments. jmod returns the integer*4 remainder of its two
integer*4 arguments. amod, dmod, and qmod return, respectively, the
real, double-precision, and real*16 whole number remainder of the integer
division of their two arguments. The generic version mod will return the
data type of its arguments. The result of these intrinsics is undefined
when the value of the second argument is zero.
PPPPaaaaggggeeee 1111 [ Back ]
|