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

  man pages->IRIX man pages -> f90/modulo (3)              
Title
Content
Arch
Section
 

Contents


MODULO(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     MODULO - Modulo function

SYNOPSIS    [Toc]    [Back]

     MODULO ([A=]a, [P=]p)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The MODULO	function accepts the following arguments:

     a	  Must be of type integer or real

     p	  Must be of the same type and kind type parameter as a

     MODULO is an elemental function.  The name	of this	intrinsic cannot be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	type and type parameter	are the	same as	a, which can be
     integer or	real.

     When a is of type integer,	if P /0, MODULO (a, p)	has the	value r
     such that A = Q x P + R, where q is an integer.  The inequality
     0 <= r < p	holds if p > 0,	and p <	r <= 0 holds if	p < 0.

     If	P = 0, the result is machine-specific.	The result is not a
     meaningful	number (a NAN) when that value is available.  Otherwise	the
     result is 0.

     When a is of type real, if	P /0, the value of the	result is A - FLOOR
     (A	/ P) * P.  If P	= 0, the result	is machine-specific.

EXAMPLES    [Toc]    [Back]

     MODULO(8, 5) has the value	3.  MODULO(-8, 5) has the value	2.
     MODULO(8, -5) has the value -2.  MODULO(-8, -5) has the value -3.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

MODULO(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     MODULO - Modulo function

SYNOPSIS    [Toc]    [Back]

     MODULO ([A=]a, [P=]p)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The MODULO	function accepts the following arguments:

     a	  Must be of type integer or real

     p	  Must be of the same type and kind type parameter as a

     MODULO is an elemental function.  The name	of this	intrinsic cannot be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	type and type parameter	are the	same as	a, which can be
     integer or	real.

     When a is of type integer,	if P /0, MODULO (a, p)	has the	value r
     such that A = Q x P + R, where q is an integer.  The inequality
     0 <= r < p	holds if p > 0,	and p <	r <= 0 holds if	p < 0.

     If	P = 0, the result is machine-specific.	The result is not a
     meaningful	number (a NAN) when that value is available.  Otherwise	the
     result is 0.

     When a is of type real, if	P /0, the value of the	result is A - FLOOR
     (A	/ P) * P.  If P	= 0, the result	is machine-specific.

EXAMPLES    [Toc]    [Back]

     MODULO(8, 5) has the value	3.  MODULO(-8, 5) has the value	2.
     MODULO(8, -5) has the value -2.  MODULO(-8, -5) has the value -3.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
BN_mod_inverse OpenBSD compute inverse modulo n
BN_mod_inverse Tru64 Compute inverse modulo n
BN_mod_inverse NetBSD compute inverse modulo n
gss_close Tru64 Application Security SDK supports this function only for compatibility. This function is not require...
gss_open Tru64 Application Security SDK supports this function only for compatibility. This function is not require...
erf IRIX error function and complementary error function
erf IRIX error function and complementary error function
erf Linux error function and complementary error function
XmResolveAllPartOffsets IRIX A function that allows writing of
asin NetBSD arc sine function
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service