diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Math/Decimal/FastPP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Math/Decimal/FastPP.pm b/lib/Math/Decimal/FastPP.pm index 8db00a9..aed46c9 100644 --- a/lib/Math/Decimal/FastPP.pm +++ b/lib/Math/Decimal/FastPP.pm @@ -91,7 +91,7 @@ sub dfmt my $f; my $l; - ($s, $i, $f) = $a =~ m/^(-?)(\d*).?(\d*)$/; + ($s, $i, $f) = $a =~ m/^(-?)(\d*)[.]?(\d*)$/; $l = length($f); if ($i eq '') { $i = '0'; } if ($l < $p) { $f .= '0' x ($p - $l); } |