HUGE (The GNU Fortran Compiler)

### 8.142 `HUGE` — Largest number of a kind ¶

Synopsis:

  `RESULT = HUGE(X)`

Description:

  `HUGE(X)` returns the largest number that is not an infinity in the model of the type of `X`.

Class:

  Inquiry function

Arguments:

  X | Shall be of type `REAL`, `INTEGER` or `UNSIGNED`.

Return value:

  The return value is of the same type and kind as X

Example:

      program test_huge_tiny
        print *, huge(0), huge(0.0), huge(0.0d0)
        print *, tiny(0.0), tiny(0.0d0)
      end program test_huge_tiny

Standard:

  Fortran 90 and later, extension for `UNSIGNED` (see Unsigned integers)