eps
Floating-point relative accuracy
Description
d = eps
returns the distance from1.0
to the next larger double-precision number, that is, 2-52.
d = eps(
, wherex
)x
has data typesingle
ordouble
, returns the positive distance fromabs(x)
to the next larger floating-point number of the same precision asx
. Ifx
has typeduration
, theneps(x)
returns the next largerduration
value. The commandeps(1.0)
is equivalent toeps
.
d = eps(
returnsdatatype
)eps
according to the data type specified bydatatype
, which can be either"double"
or"single"
. The syntaxeps("double")
(default) is equivalent toeps
, andeps("single")
is equivalent toeps(single(1.0))
.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a