NHacker Next
login
▲A real fixed-point decimal crate in Rustgithub.com
11 points by hellowub 3 days ago | 1 comment
Loading comments...
hellowub 3 days 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.