A real fixed-point decimal crate in Rust

(github.com)

11 points | by hellowub 3 days ago ago

1 comments

  • hellowub 3 days ago ago

    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.