Decision Workspace
assert-eq-float vs float_next_after vs round_float
Side-by-side comparison of Rust crates
44
assert-eq-float
growingv0.1.4
This crate provides the `assert_eq_float!` macros that support floats.
62
float_next_after
stablev2.0.0
A trait for native rust f64/f32 nextafter
50
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 | 44 | 62 | 50 |
| Total Downloads | 2.4M | 14.6M | 19.6K |
| 30d Downloads | 261.5K | 1.1M | 46 |
| Dependents | 43 | 197 | 0 |
| Releases | 5 | 8 | 16 |
| Last Updated | 738d ago | 41d ago | 578d ago |
| Age | 2y 12m | 5y 11m | 1y 11m |
Health Breakdown
assert-eq-float
Maintenance
4
Quality
10
Community
10
Popularity
8
Documentation
12
float_next_after
Maintenance
13
Quality
20
Community
12
Popularity
8
Documentation
9
round_float
Maintenance
7
Quality
17
Community
6
Popularity
5
Documentation
15
Technical Details
| assert-eq-float | float_next_after | round_float | |
|---|---|---|---|
| Version | 0.1.4 | 2.0.0 | 1.2.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 2 |
| Crate Size | 3KB | 14KB | 6KB |
| Features | 0 | 0 | 1 |
| Yanked % | 20.0% | 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 62/100, but none of the options score above 80.
- •float_next_after is depended on by 197 crates — strongest ecosystem trust.
- •⚠ assert-eq-float, round_float have not been updated in over a year.
- •assert-eq-float is pre-1.0 — API may change.