home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / nearest.z / nearest
Encoding:
Text File  |  2002-10-03  |  2.0 KB  |  57 lines

  1. NEAREST(3I)                                           Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      NNEEAARREESSTT - Returns the nearest different machine representable number
  6.      in a given direction
  7.  
  8. SSYYNNOOPPSSIISS
  9.      NNEEAARREESSTT (([XX==]_x,, [SS==]_s))
  10.  
  11. IIMMPPLLEEMMEENNTTAATTIIOONN
  12.      UNICOS, UNICOS/mk, IRIX systems
  13.  
  14.      CF90, MIPSpro 7 Fortran 90
  15.  
  16. SSTTAANNDDAARRDDSS
  17.      Fortran
  18.  
  19. DDEESSCCRRIIPPTTIIOONN
  20.      The NNEEAARREESSTT intrinsic function returns the nearest different machine
  21.      representable number in a given direction.  It accepts the following
  22.      arguments:
  23.  
  24.      _x         Must be of type real
  25.  
  26.      _s         Must be of type real and not equal to zero
  27.  
  28.      NNEEAARREESSTT is an elemental function.  The name of this intrinsic cannot
  29.      be passed as an argument.
  30.  
  31. RREETTUURRNN VVAALLUUEESS
  32.      The result type and type parameter are the same as _x.  The result has
  33.      a value equal to the machine representable number distinct from _x and
  34.      nearest to it in the direction of the infinity with the same sign as
  35.      _s.
  36.  
  37. NNOOTTEESS
  38.      On CRAY T90 systems that support IEEE arithmetic, this intrinsic
  39.      vectorizes inline for 64-bit operands and calls to scalar-only library
  40.      routines for 128-bit operands.
  41.  
  42. EEXXAAMMPPLLEESS                                   -46
  43.      NNEEAARREESSTT ((33..00,, 22..00)) has the value 3 + 2    on UNICOS systems according
  44.      to the real number system model.
  45.                                            -22
  46.      NNEEAARREESSTT ((33..00,, 22..00)) has the value 3 + 2    on UNICOS/mk and IRIX
  47.      systems, according to the real number system model.
  48.  
  49.      For more information on the real number model, see the MMOODDEELLSS(3I) man
  50.      page.
  51.  
  52. SSEEEE AALLSSOO
  53.      MMOODDEELLSS(3I)
  54.  
  55.      _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 for the printed version of this
  56.      man page.
  57.