Skip to content

Commit

Permalink
fix the problem with $decimal_separator and $thousands_separator
Browse files Browse the repository at this point in the history
  • Loading branch information
vegimcarkaxhija authored and Ivascu Madalin committed Mar 28, 2024
1 parent 6af6aa4 commit de1525b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ function getClientIpBuckaroo()

function roundAmount($amount) {
if(is_scalar($amount)) {
return (float) number_format($amount, 2 );
return (float) number_format($amount, 2, '.', '');
}
return 0;
}
Expand Down

0 comments on commit de1525b

Please sign in to comment.