*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ftn/mod (3)              
Title
Content
Arch
Section
 

Contents


MOD(3F)								       MOD(3F)


NAME    [Toc]    [Back]

     mod, imod,	jmod, amod, dmod, qmod - FORTRAN remaindering intrinsic
     functions

SYNOPSIS    [Toc]    [Back]

     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)

DESCRIPTION    [Toc]    [Back]

     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 ]
 Similar pages
Name OS Title
dim IRIX FORTRAN positive difference intrinsic functions
strcmp IRIX FORTRAN string comparison intrinsic functions
lge IRIX FORTRAN string comparison intrinsic functions
dprod IRIX FORTRAN double precision and quad precision product intrinsic functions
conjg IRIX FORTRAN complex conjugate intrinsic function
aint IRIX FORTRAN integer part intrinsic function
sign IRIX FORTRAN transfer-of-sign intrinsic function
conjg IRIX FORTRAN complex conjugate intrinsic function
alog IRIX FORTRAN natural logarithm intrinsic function
models IRIX Describes mathematical representation models for CF90 and MIPSpro 7 Fortran 90 compiler intrinsic procedures
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service