Expand description
Provides utility functions for working with floating point precision
Constants§
- Default accuracy for
f64
, equivalent to0.0 * F64_PREC
- Standard epsilon, maximum relative precision of IEEE 754 double-precision floating point numbers (64 bit) e.g.
2^-53
Functions§
- Compares if two floats are close via
approx::abs_diff_eq
using a maximum absolute difference (epsilon) ofacc
. - Compares if two floats are close via
approx::relative_eq!
andcrate::consts::ACC
relative precision. Updates first argument to value of second argument