akubera / bigdecimal-rs

Arbitrary precision decimal crate for Rust
Other
275 stars 71 forks source link

add a customized round up or round down method #87

Open Kilerd opened 2 years ago

Kilerd commented 2 years ago

for now there is only one method round whose behavior is rounding it up as default. and these is no method to do the round down.

so probably need a method passing precision and the way of rounding to specify the round behavior. like round_with(precision, RoundUp / RoundDown)