Equana

Back to Type Conversion

eps

Machine epsilon of a floating-point type.

Syntax

eps(T) → Machine epsilon as a Float64

Backends

TypeScript

Description

Returns the gap between 1 and the next representable value for the given type. Complex types resolve to their component float type.

Parameters

NameDescription
TA float/complex Type (e.g. Float64) or dtype string

Returns

Machine epsilon as a Float64

Examples

Try It
>> eps(Float64)
2.220446049250313e-16
Try It
>> eps(Float128)
4.930380657631324e-32

See Also