Loading

ULP

math

Returns the size of the ULP (Unit in the Last Place) for the argument. The ulp for a DOUBLE is the positive distance between this floating-point value and the DOUBLE value next larger in magnitude.

Since 2.6.0, this function can be applied to a list of numeric values. In this case, the function is applied to each element of the list thus returning a list.

Since 2.7.1, this function can be also applied to a GTS. In this case, the function is applied to each value of the given GTS, returning a new GTS.

ULP is available since version 1.0.0.

Signatures

Examples

42.0 ULP MAXLONG TODOUBLE ULP