Expand description
Vendored from statrs@0.18.0 (prec.rs), convenience wrappers around methods from the approx crate. Provides utility functions for working with floating point precision.
Constants§
- ACC
- Targeted accuracy instantiated over
f64
Functions§
- almost_
eq - Compares if two floats are close via
approx::abs_diff_eq
using a maximum absolute difference (epsilon) ofacc
. - convergence
- Compares if two floats are close via
approx::relative_eq!
andACC
relative precision. Updates first argument to value of second argument.