home *** CD-ROM | disk | FTP | other *** search
- IEEE_CLASS(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- IIEEEEEE__CCLLAASSSS - Returns the class to which _x belongs
-
- SSYYNNOOPPSSIISS
- IIEEEEEE__CCLLAASSSS (([XX==]_x))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS/mk and IRIX systems
-
- CRAY T90 systems that support IEEE floating-point arithmetic
-
- SSTTAANNDDAARRDDSS
- CF90 and MIPSpro 7 Fortran 90 compiler extension to Fortran 90
-
- IEEE Standard for Binary Floating-point Arithmetic
-
- DDEESSCCRRIIPPTTIIOONN
- A floating-point number can be classified several ways, such as a
- quiet NaN, a signaling NaN, -0, +inf, etc. The IIEEEEEE__CCLLAASSSS 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.
-
- IIEEEEEE__CCLLAASSSS is an elemental function. The name of this intrinsic
- cannot be passed as an argument.
-
- NNOOTTEESS
- 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: UUSSEE CCRRII__IIEEEEEE__DDEEFFIINNIITTIIOONNSS
-
- * On UNICOS, UNICOS/mk, and IRIX systems: UUSSEE FFTTNN__IIEEEEEE__DDEEFFIINNIITTIIOONNSS
-
- The CCRRII__IIEEEEEE__DDEEFFIINNIITTIIOONNSS module is obsolescent. It will be removed
- for the CF90 4.0 release.
-
- RREETTUURRNN VVAALLUUEESS
- 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
-
- EEXXAAMMPPLLEESS
- 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
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-