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

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

Contents


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

NAME    [Toc]    [Back]

     IEEE_CLASS	- Returns the class to which x belongs

SYNOPSIS    [Toc]    [Back]

     IEEE_CLASS	([X=]x)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS/mk and IRIX	systems

     CRAY T90 systems that support IEEE	floating-point arithmetic

STANDARDS    [Toc]    [Back]

     CF90 and MIPSpro 7	Fortran	90 compiler extension to Fortran 90

     IEEE Standard for Binary Floating-point Arithmetic

DESCRIPTION    [Toc]    [Back]

     A floating-point number can be classified several ways, such as a
     quiet NaN,	a signaling NaN, -0, +inf, etc.	 The IEEE_CLASS	intrinsic
     function returns a	value that indicates the class to which	x belongs.

     This function accepts the following argument:

     x	       Must be of type real.

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

NOTES    [Toc]    [Back]

     The IEEE intrinsic	procedures use the named constants contained in	a
     system module, so you must	include	one of the following statements	in
     your program:

     * On UNICOS and UNICOS/mk systems:	 USE CRI_IEEE_DEFINITIONS

     * On UNICOS, UNICOS/mk, and IRIX systems:	USE FTN_IEEE_DEFINITIONS

     The CRI_IEEE_DEFINITIONS module is	obsolescent.  It will be removed
     for the CF90 4.0 release.

RETURN VALUES    [Toc]    [Back]

     The result	type and type parameter	is default integer.  If	x is an
     array, the	result is an array of the same shape as	x.

     The value returned	has a value represented	by one of the following
     named constants:

	  IEEE_CLASS_SIGNALING_NAN
	  IEEE_CLASS_QUIET_NAN
	  IEEE_CLASS_NEG_INFINITY
	  IEEE_CLASS_NEG_NORM_NONZERO
	  IEEE_CLASS_NEG_DENORM
	  IEEE_CLASS_NEG_ZERO
	  IEEE_CLASS_POS_ZERO
	  IEEE_CLASS_POS_DENORM
	  IEEE_CLASS_POS_NORM_NONZERO
	  IEEE_CLASS_POS_INFINITY

EXAMPLES    [Toc]    [Back]

	  REAL	 x
	  ...			    ! Compute X.
	  SELECT CASE (IEEE_CLASS(x))
	    CASE IEEE_CLASS_SIGNALING_NAN
	      ...		    ! Do something.
	    CASE IEEE_CLASS_QUIET_NAN
	      ...		    ! Do something else.
	    ...			    ! Other cases.
	  END SELECT

SEE ALSO    [Toc]    [Back]

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

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

NAME    [Toc]    [Back]

     IEEE_CLASS	- Returns the class to which x belongs

SYNOPSIS    [Toc]    [Back]

     IEEE_CLASS	([X=]x)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS/mk and IRIX	systems

     CRAY T90 systems that support IEEE	floating-point arithmetic

STANDARDS    [Toc]    [Back]

     CF90 and MIPSpro 7	Fortran	90 compiler extension to Fortran 90

     IEEE Standard for Binary Floating-point Arithmetic

DESCRIPTION    [Toc]    [Back]

     A floating-point number can be classified several ways, such as a
     quiet NaN,	a signaling NaN, -0, +inf, etc.	 The IEEE_CLASS	intrinsic
     function returns a	value that indicates the class to which	x belongs.

     This function accepts the following argument:

     x	       Must be of type real.

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

NOTES    [Toc]    [Back]

     The IEEE intrinsic	procedures use the named constants contained in	a
     system module, so you must	include	one of the following statements	in
     your program:

     * On UNICOS and UNICOS/mk systems:	 USE CRI_IEEE_DEFINITIONS

     * On UNICOS, UNICOS/mk, and IRIX systems:	USE FTN_IEEE_DEFINITIONS

     The CRI_IEEE_DEFINITIONS module is	obsolescent.  It will be removed
     for the CF90 4.0 release.

RETURN VALUES    [Toc]    [Back]

     The result	type and type parameter	is default integer.  If	x is an
     array, the	result is an array of the same shape as	x.

     The value returned	has a value represented	by one of the following
     named constants:

	  IEEE_CLASS_SIGNALING_NAN
	  IEEE_CLASS_QUIET_NAN
	  IEEE_CLASS_NEG_INFINITY
	  IEEE_CLASS_NEG_NORM_NONZERO
	  IEEE_CLASS_NEG_DENORM
	  IEEE_CLASS_NEG_ZERO
	  IEEE_CLASS_POS_ZERO
	  IEEE_CLASS_POS_DENORM
	  IEEE_CLASS_POS_NORM_NONZERO
	  IEEE_CLASS_POS_INFINITY

EXAMPLES    [Toc]    [Back]

	  REAL	 x
	  ...			    ! Compute X.
	  SELECT CASE (IEEE_CLASS(x))
	    CASE IEEE_CLASS_SIGNALING_NAN
	      ...		    ! Do something.
	    CASE IEEE_CLASS_QUIET_NAN
	      ...		    ! Do something else.
	    ...			    ! Other cases.
	  END SELECT

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
vfs_mountedon FreeBSD check if the vnode belongs to a mounted file system
class_index_to_name Tru64 gets the class name given the class index
ieee_binary_scale IRIX Returns y multiplied by 2**n
pxfgetenv IRIX Returns a value for the environment name
getzbuffer IRIX returns whether z-buffering is on or off
clGetName IRIX returns a name for a parameter
imaxabs FreeBSD returns absolute value
mask IRIX Returns a bit mask
ieee_copy_sign IRIX Returns x with the sign of y
llabs FreeBSD returns absolute value
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service