Closed moderncodes closed 1 year ago
Thank you for raising this. It appears the algorithm was implicitly rounding when requiring multiple words. Fortunately this is an easy fix - PR incoming.
Would you please publish your fix to crates.io, or you follow some process?
Will get a release out today. I was looking at trying to get another feature in there, however haven't found the time. Publishing a small release isn't necessarily a bad thing!
Thank you!
rustc 1.71.0 rust_decimal = "1.30.0" rust_decimal_macros = "1.30.0"
Bellow code example, trc_4 result value from trunc_with_scale does not truncate to defined scale.
Output
Expected