Fortran Wiki
epsilon

Description

epsilon(x) returns a nearly negligible number relative to 1.

Standard

Fortran 95 and later

Class

Inquiry function

Syntax

result = epsilon(x)

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

category: intrinsics