Decision Workspace
round_float vs float_next_after vs assert-eq-float
Side-by-side comparison of Rust crates
51
round_float
growingv1.2.2
Round `f64` and `f32` to specified number of decimals.
57
float_next_after
growingv2.0.0
A trait for native rust f64/f32 nextafter
53
assert-eq-float
growingv0.1.7
This crate provides the `assert_eq_float!` macros that support floats.
Core Metrics
| round_float | float_next_after | assert-eq-float | |
|---|---|---|---|
| Health Score | 51 | 57 | 53 |
| Total Downloads | 20.4K | 26.5M | 3.4M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 282 | 62 |
| Releases | 16 | 8 | 8 |
| Last Updated | 775d ago | 238d ago | 109d ago |
| Age | 2y 6m | 6y 6m | 3y 6m |
Health Breakdown
round_float
Maintenance
7
Quality
18
Community
6
Popularity
5
Documentation
15
float_next_after
Maintenance
7
Quality
20
Community
13
Popularity
8
Documentation
9
assert-eq-float
Maintenance
10
Quality
12
Community
11
Popularity
8
Documentation
12
Technical Details
| round_float | float_next_after | assert-eq-float | |
|---|---|---|---|
| Version | 1.2.2 | 2.0.0 | 0.1.7 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 2 | 3 | 0 |
| Crate Size | 6KB | 14KB | 4KB |
| Features | 1 | 0 | 0 |
| Yanked % | 6.3% | 0.0% | 12.5% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | 1.75.0 | — | 1.56 |
| 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.