Expand description
Provides utility functions for working with floating point precision
Constants§
- DEFAULT_
F64_ ACC - Default accuracy for
f64, equivalent to0.0 * F64_PREC - F64_
PREC - Standard epsilon, maximum relative precision of IEEE 754 double-precision
floating point numbers (64 bit) e.g.
2^-53
Functions§
- almost_
eq - Returns true if
aandbare withinaccof each other. Ifaorbare infinite, returnstrueonly if both are infinite and similarly signed. Always returnsfalseif either number is aNAN.