paupino / rust-decimal

Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
https://docs.rs/rust_decimal/
MIT License
980 stars 179 forks source link

Refactor truncate to allow for a shared code path #578

Closed paupino closed 1 year ago

paupino commented 1 year ago

Follow up to #576 to utilize a shared code path for trunc and trunc_with_scale.