Expand description
Machine epsilon and unit-in-the-last-place helpers.
See the book entry Shared types, constants and utilities.
Functions§
- approx_
eq_ ulps - Whether
aandbdiffer by at mostmax_ulpsrepresentable values. - machine_
epsilon - Machine epsilon of
f64: the gap between 1.0 and the next representable number (2⁻⁵²). - machine_
epsilon_ f32 - Machine epsilon of
f32(2⁻²³). - measure_
machine_ epsilon - Determines the
f64machine epsilon empirically by halving until1 + e/2 == 1. - ulp
- Spacing between
xand the next larger-magnitudef64(the unit in the last place).NaNfor non-finite input. - ulps_
between - Number of representable
f64values betweenaandb(0 if equal;Noneif either is NaN).