humansize 2.1.3

A configurable crate to easily represent sizes in a human-readable format.
Documentation
1
2
3
4
5
use libm::fabs;

pub(crate) fn f64_eq(left: f64, right: f64) -> bool {
    left == right || fabs(left - right) <= f64::EPSILON
}