EPSILON (The GNU Fortran Compiler)

### 8.100 `EPSILON` — Epsilon function ¶

Synopsis:

  `RESULT = EPSILON(X)`

Description:

  `EPSILON(X)` returns the smallest number E of the same kind as X such that 1 + E > 1.

Class:

  Inquiry function

Arguments:

  X | The type shall be `REAL`.

Return value:

  The return value is of same type as the argument.

Example:

      program test_epsilon
          real :: x = 3.143
          real(8) :: y = 2.33
          print *, EPSILON(x)
          print *, EPSILON(y)
      end program test_epsilon

Standard:

  Fortran 90 and later