pub fn ulp(x: f64) -> f64
Distance from x to the next representable f64 toward +infinity.
x
f64
use mathverse_core::precision::ulp; assert!(ulp(1.0) < 1e-15); assert!(ulp(-1.0) < 1e-15);