float-cmp icon indicating copy to clipboard operation
float-cmp copied to clipboard

Floating point approximate comparison for Rust

Results 4 float-cmp issues
Sort by recently updated
recently updated
newest added

I cannot compile this crate. I am depending on it through https://crates.io/crates/mockall and building using https://bazel.build/ with https://github.com/google/cargo-raze. The commit is https://github.com/dayfine/xlab/commit/9f9bf1ea4145c1264fb8207f62c829c420f67a41. The error I see is: ``` NFO: Found...

It would be very convenient to be able to `#[derive(ApproxEq)]` on structs (much like one does with PartialEq). Would you see that a proc-macro crate for that fitting within the...

...perhaps by making the core functions branchless. approx_eq_ulps(), probably the most used function, is pretty short and probably quite easy to make branchless. approx_cmp() and approx_eq_ratio() are disturbingly long functions...

enhancement
help wanted

So, implement ApproxOrd, and then consider how to handle ApproxOrdUlps.