summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/02-number-handling.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/02-number-handling.t b/t/02-number-handling.t
index 4add3b1f..5b694b1d 100644
--- a/t/02-number-handling.t
+++ b/t/02-number-handling.t
@@ -19,11 +19,13 @@ foreach my $value ('0.01', '0.05', '0.015', '0.025', '1.1', '1.5', '1.9',
foreach my $places ('3', '2', '1', '0') {
Math::BigFloat->round_mode('+inf');
$expected = Math::BigFloat->new($value)->ffround(-$places);
+ $expected->precision(undef);
is($form->round_amount($value, $places), $expected,
"$value to $places decimal places - $expected");
Math::BigFloat->round_mode('-inf');
$expected = Math::BigFloat->new(-$value)->ffround(-$places);
+ $expected->precision(undef);
is($form->round_amount(-$value, $places), $expected,
"-$value to $places decimal places - $expected");
}