paupino/rust-decimal
Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations. observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 56.0
- age_days: 3581
- days_rel: 83
- days_push: 8
- n_releases_24m: 9
Adoption not part of the score
1329 stars · 226 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A pure Rust decimal number type providing exact fixed-precision arithmetic with a 96-bit integer mantissa, scaling factor, and sign. It is designed for financial and other calculations where floating-point round-off errors are unacceptable, with integrations for serde, Diesel, Postgres, and wasm.
Use cases
- represent money and currency amounts without floating-point errors
- perform exact decimal arithmetic in Rust
- store decimal values in Postgres or MySQL via Diesel
- serialize decimals to JSON with serde
- run fixed-precision math in WebAssembly
- avoid binary float rounding in billing and accounting code
When to choose
- you need exact decimal/fractional arithmetic in Rust, especially for money
- you want a mature, widely downloaded crate with database and serde integrations
- you need no_std or wasm support for decimal math
When to avoid
- you only need approximate scientific computation where f64/f32 suffices
- you need arbitrary-precision or very large numbers beyond 96-bit mantissa
- you are not working in Rust
Facets
library · maturity stable
math serialization fintech developer-tools rust wasm cross-platform decimal-arithmetic fixed-precision financial-calculations no-std postgres-integration diesel-integration algorithms
10 sources
- readme: https://github.com/paupino/rust-decimal · fetched 2026-08-28 · f97800e3a311
- homepage: https://docs.rs/rust_decimal/ · fetched 2026-08-29 · 13348b9583f9
- site_page: https://docs.rs/crate/rust_decimal/latest · fetched 2026-08-29 · dc733379d5dc
- site_page: https://docs.rs/ · fetched 2026-08-29 · aeb82924db4c
- site_page: https://docs.rs/crate/rust_decimal/latest/features · fetched 2026-08-29 · dc645213f0e7
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| paupino/rust-decimal | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="paupino/rust-decimal")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem