almost: A crate for comparing floating point numbers.
This crate strives to make choices that are good for most cases, and not providing you a complex API that encourages misuse.
- Uses relative comparison by default.
- Provides a separate function for comparison with zero (the only time when absolute comparison is a good default choice).
- Uses a better default for tolerance than
std::{f32,f64}::EPSILON
. - Handles infinities / subnormals properly.
no_std
compatible always
Public domain, as explained here