ULP
ulp stands for unit in the last place. In floating-point arithmetic, ulp(x) is the distance between x and the next representable floating-point number greater than x, i.e., the gap to nextafter(x, +inf). This quantity measures the spacing of representable numbers near x and is always nonnegative. It can be used to assess the potential rounding error when x is subjected to arithmetic operations.
In IEEE 754 binary formats, the spacing depends on the magnitude of x. For a format with
Relation to error analysis: ulp is related to machine epsilon, which is ulp(1). It provides a local
Implementation and usage: Some languages provide a dedicated ulp function, such as Math.ulp in Java, to return