Floating-point relative accuracy
d = eps
returns the distance from 1.0
to the next
larger double-precision number, that is,
2-52.
d = eps(
, where x
)x
has
data type single
or double
,
returns the positive distance from abs(x)
to the
next larger floating-point number of the same precision as x
.
If x
has type duration
, then eps(x)
returns
the next larger duration
value. The command eps(1.0)
is
equivalent to eps
.