2 stable releases
Uses new Rust 2024
| new 1.7.3 | Mar 6, 2026 |
|---|---|
| 1.7.2 | Feb 25, 2026 |
#2720 in Development tools
Used in 13 crates
(4 directly)
21KB
65 lines
tokmd-math
Single-responsibility microcrate for deterministic numeric helpers used across tokmd analysis crates.
API
round_f64(value, decimals)- deterministic decimal rounding helpersafe_ratio(numer, denom)- zero-safe ratio helper (4 decimal places)percentile(sorted, pct)- percentile lookup over sorted integer valuesgini_coefficient(sorted)- inequality coefficient for sorted integer values
Guarantees
- deterministic for identical inputs
- no allocation for core operations
- no unsafe code