home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / ieee_class.z / ieee_class
Encoding:
Text File  |  1998-10-30  |  2.7 KB  |  77 lines

  1. IEEE_CLASS(3I)                                         Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      IIEEEEEE__CCLLAASSSS - Returns the class to which _x belongs
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IIEEEEEE__CCLLAASSSS (([XX==]_x))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS/mk and IRIX systems
  12.  
  13.      CRAY T90 systems that support IEEE floating-point arithmetic
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      CF90 and MIPSpro 7 Fortran 90 compiler extension to Fortran 90
  17.  
  18.      IEEE Standard for Binary Floating-point Arithmetic
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      A floating-point number can be classified several ways, such as a
  22.      quiet NaN, a signaling NaN, -0, +inf, etc.  The IIEEEEEE__CCLLAASSSS intrinsic
  23.      function returns a value that indicates the class to which _x belongs.
  24.  
  25.      This function accepts the following argument:
  26.  
  27.      _x         Must be of type real.
  28.  
  29.      IIEEEEEE__CCLLAASSSS is an elemental function.  The name of this intrinsic
  30.      cannot be passed as an argument.
  31.  
  32. NNOOTTEESS
  33.      The IEEE intrinsic procedures use the named constants contained in a
  34.      system module, so you must include one of the following statements in
  35.      your program:
  36.  
  37.      * On UNICOS and UNICOS/mk systems:  UUSSEE CCRRII__IIEEEEEE__DDEEFFIINNIITTIIOONNSS
  38.  
  39.      * On UNICOS, UNICOS/mk, and IRIX systems:  UUSSEE FFTTNN__IIEEEEEE__DDEEFFIINNIITTIIOONNSS
  40.  
  41.      The CCRRII__IIEEEEEE__DDEEFFIINNIITTIIOONNSS module is obsolescent.  It will be removed
  42.      for the CF90 4.0 release.
  43.  
  44. RREETTUURRNN VVAALLUUEESS
  45.      The result type and type parameter is default integer.  If _x is an
  46.      array, the result is an array of the same shape as _x.
  47.  
  48.      The value returned has a value represented by one of the following
  49.      named constants:
  50.  
  51.           IEEE_CLASS_SIGNALING_NAN
  52.           IEEE_CLASS_QUIET_NAN
  53.           IEEE_CLASS_NEG_INFINITY
  54.           IEEE_CLASS_NEG_NORM_NONZERO
  55.           IEEE_CLASS_NEG_DENORM
  56.           IEEE_CLASS_NEG_ZERO
  57.           IEEE_CLASS_POS_ZERO
  58.           IEEE_CLASS_POS_DENORM
  59.           IEEE_CLASS_POS_NORM_NONZERO
  60.           IEEE_CLASS_POS_INFINITY
  61.  
  62. EEXXAAMMPPLLEESS
  63.           REAL   x
  64.           ...                       ! Compute X.
  65.           SELECT CASE (IEEE_CLASS(x))
  66.             CASE IEEE_CLASS_SIGNALING_NAN
  67.               ...                   ! Do something.
  68.             CASE IEEE_CLASS_QUIET_NAN
  69.               ...                   ! Do something else.
  70.             ...                     ! Other cases.
  71.           END SELECT
  72.  
  73. SSEEEE AALLSSOO
  74.      _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
  75.      printed version of this man page.
  76.  
  77.