Decision Workspace
precise-calc vs dashu-ratio vs dashu-float
Side-by-side comparison of Rust crates
A high precision calculator library and command line tool.
Arbitrary-precision rational math library for Rust. Provides RBig and a relaxed variant for fast computation, with small values inlined on the stack. Exact arithmetic, Diophantine approximation of floats, parsing and formatting in any base including repeating-decimal notation, and conversions to and from other dashu types. Optional serde, rand, num-traits, rkyv, and zeroize.
Arbitrary-precision float math library for Rust with arbitrary base and arbitrary rounding mode. Provides FBig, DBig, and CachedFBig with efficient base conversion, the hexadecimal float format used by C++ programs, and parsing and formatting in base 2-36. Transcendentals (exp, ln, trig, hyperbolic, powers, roots, pi) are correctly rounded; optional serde, rand, num-traits, rkyv, and zeroize.
Core Metrics
| precise-calc | dashu-ratio | dashu-float | |
|---|---|---|---|
| Health Score | 37 | 67 | 65 |
| Total Downloads | 3.8K | 2.3M | 3.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 44 | 214 |
| Releases | 3 | 15 | 21 |
| Last Updated | 1255d ago | 15d ago | 8d ago |
| Age | 3y 5m | 3y 11m | 4y |
Health Breakdown
Technical Details
| precise-calc | dashu-ratio | dashu-float | |
|---|---|---|---|
| Version | 0.1.2 | 0.6.1 | 0.6.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 5 | 22 | 27 |
| Crate Size | 12KB | 73KB | 311KB |
| Features | 0 | 14 | 18 |
| Yanked % | 0.0% | 0.0% | 4.8% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.68 | 1.68 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dashu-ratio leads with a health score of 67/100, but none of the options score above 80.
- •dashu-float has the most downloads (3.2M), suggesting wider adoption.
- •dashu-float is depended on by 214 crates — strongest ecosystem trust.
- •⚠ precise-calc has not been updated in over a year.