HyperMath

Eps

Eps

Previous topic Next topic No expanding text in this topic  

Eps

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Floating point relative accuracy.

Syntax

d = Eps()

d = Eps(arg)

d = Eps(‘double’)

Argument

Name

Description

 

arg

(optional)

The reference value from which to compute the distance to the next larger floating point number. The default is 1.0 in double precision. arg = ‘double’ is the same as the default.

Output

Name

Description

 

d

The distance from abs(X) to the next larger floating point number with the same precision as the argument (either double precision or single precision).

Example 1

Find the distance to the next number larger than 2.0.

 

Syntax

 

d = Eps(2.0)

 

Result

 

d = 4.4408920985006e-016

See Also:

Subrange

Suppress