huge(3I)

HUGE - Returns the largest number in the integer or real numeric model

As shipped in IRIX 6.5.5. Last changed in IRIX 6.5.5.

NAME
     HUGE - Returns the largest number in the integer or real numeric model

SYNOPSIS
     HUGE ([X=]x)

IMPLEMENTATION
     UNICOS, UNICOS/mk, IRIX systems

     CF90, MIPSpro 7 Fortran 90

STANDARDS
     Fortran

DESCRIPTION
     The HUGE intrinsic function returns the largest number in the model
     representing numbers of the same type and kind type parameter as the
     argument x.  It accepts the following argument:

     x         Must be of type integer or real.  It may be scalar or array
               valued.

     HUGE is an inquiry function.  The name of this intrinsic cannot be
     passed as an argument.

NOTES
     On UNICOS systems, both execution speed and the number of bits used in
     mathematical operations are affected when compiling with
     f90 -O fastint, which is the default setting.  For more information,
     see CF90 Commands and Directives Reference Manual.

RETURN VALUES
     The result is a scalar value of the same type and kind type parameter
     as x.
                               q
     The result has the value r -1 if x is of type integer and the value
         -p                 e sub max
     (1-b  ) multiplied by b          if x is of type real, where r, q, b,
     p, and

     e     (represented as "e sub max" in the previous equation) are
       max
     as defined in the real number model, which represents numbers of the
     same type and kind type parameter as x.  For more information on the
     real number model, see the MODELS(3I) man page.

EXAMPLES
     On UNICOS systems, HUGE(X) has a value that approximates
         -47                 8189
     (1-2   ) multiplied by 2     for real X.

     On CRAY T90 systems that support IEEE floating-point arithmetic,
     HUGE(X) has values that approximate the following:
           -24                 128
     * (1-2   ) multiplied by 2    for real (KIND=4) X
           -53                 1024
     * (1-2   ) multiplied by 2     for real (KIND=8) X
           -113                 16384
     * (1-2    ) multiplied by 2      for real (KIND=16) X

     On UNICOS/mk systems, HUGE(X) has values that approximate the
     following:
           -24                 128
     * (1-2   ) multiplied by 2    for real (KIND=4) X
           -53                 1024
     * (1-2   ) multiplied by 2     for real (KIND=8) X

     On IRIX systems, HUGE(X) has values that approximate the following:
           -24                 128
     * (1-2   ) multiplied by 2    for real (KIND=4) X
           -53                 1024
     * (1-2   ) multiplied by 2     for real (KIND=8) X
           -107                 1023
     * (1-2    ) multiplied by 2     for real (KIND=16) X

SEE ALSO
     MODELS(3I)

     Intrinsic Procedures Reference Manual for the printed version of this
     man page.