Skip to content

Commit aa1982a

Browse files
committed
Make round a public method
1 parent 734b34d commit aa1982a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ impl BigDecimal {
586586
}
587587

588588
/// Return number rounded to round_digits precision after the decimal point
589-
fn round(&self, round_digits: i64) -> BigDecimal {
589+
pub fn round(&self, round_digits: i64) -> BigDecimal {
590590
let (bigint, decimal_part_digits) = self.as_bigint_and_exponent();
591591
let need_to_round_digits = decimal_part_digits - round_digits;
592592
if round_digits >= 0 && need_to_round_digits <= 0 {

0 commit comments

Comments
 (0)