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: |