Decision Workspace
assert-eq-float vs float_next_after vs round_float
Side-by-side comparison of Rust crates
53
assert-eq-float
growingv0.1.7
This crate provides the `assert_eq_float!` macros that support floats.
57
float_next_after
growingv2.0.0
A trait for native rust f64/f32 nextafter
51
round_float
growingv1.2.2
Round `f64` and `f32` to specified number of decimals.
Core Metrics
| assert-eq-float | float_next_after | round_float | |
|---|---|---|---|
| Health Score | 53 | 57 | 51 |
| Total Downloads | 3.4M | 26.5M | 20.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 62 | 282 | 0 |
| Releases | 8 | 8 | 16 |
| Last Updated | 109d ago | 238d ago | 775d ago |
| Age | 3y 6m | 6y 6m | 2y 6m |
Health Breakdown
assert-eq-float
Maintenance
10
Quality
12
Community
11
Popularity
8
Documentation
12
float_next_after
Maintenance
7
Quality
20
Community
13
Popularity
8
Documentation
9
round_float
Maintenance
7
Quality
18
Community
6
Popularity
5
Documentation
15
Technical Details
| assert-eq-float | float_next_after | round_float | |
|---|---|---|---|
| Version | 0.1.7 | 2.0.0 | 1.2.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 3 | 2 |
| Crate Size | 4KB | 14KB | 6KB |
| Features | 0 | 0 | 1 |
| Yanked % | 12.5% | 0.0% | 6.3% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | 1.56 | — | 1.75.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •float_next_after leads with a health score of 57/100, but none of the options score above 80.
- •float_next_after is depended on by 282 crates — strongest ecosystem trust.
- •⚠ round_float has not been updated in over a year.
- •assert-eq-float is pre-1.0 — API may change.