# eps

Floating-point relative accuracy

## Description

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

.

`d = eps(`

returns `datatype`

)`eps`

according to the data type specified by `datatype`

, which can be
either `"double"`

or `"single"`

. The syntax
`eps("double")`

(default) is equivalent to
`eps`

, and `eps("single")`

is equivalent to
`eps(single(1.0))`

.

## Examples

## Input Arguments

## Extended Capabilities

## Version History

**Introduced before R2006a**