We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
round
1 parent 734b34d commit aa1982aCopy full SHA for aa1982a
src/lib.rs
@@ -586,7 +586,7 @@ impl BigDecimal {
586
}
587
588
/// Return number rounded to round_digits precision after the decimal point
589
- fn round(&self, round_digits: i64) -> BigDecimal {
+ pub fn round(&self, round_digits: i64) -> BigDecimal {
590
let (bigint, decimal_part_digits) = self.as_bigint_and_exponent();
591
let need_to_round_digits = decimal_part_digits - round_digits;
592
if round_digits >= 0 && need_to_round_digits <= 0 {
0 commit comments