Skip to content

Commit 63ba16f

Browse files
committed
fix: fix the error.
1 parent b8524e8 commit 63ba16f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Helpers/number_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function number_to_amount($num, int $precision = 0, ?string $locale = null)
7777
{
7878
// Strip any formatting & ensure numeric input
7979
try {
80-
$num = 0 + (int) str_replace(',', '', $num);
80+
$num = 0 + str_replace(',', '', $num);
8181
} catch (ErrorException $ee) {
8282
return false;
8383
}

0 commit comments

Comments
 (0)