Hacker News new | ask | show | jobs
A real fixed-point decimal crate in Rust (github.com)
11 points by hellowub 367 days ago
1 comments

Although there are already some decimal crates also claim to be fixed-point, such as `bigdecimal`, `rust_decimal` and `decimal-rs`, they all bind the scale to each decimal instance, which changes during operations. They're more like floating point.

This crate primitive_fixed_point_decimal provides real fixed-point decimal types.