You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes it would, but the as the amount is not always a float, the type must be checked before :
// Fix case where cents are from 995 to 999 : the amount must be rounded
// otherwise the amount of cents is "100"
if(is_numeric($amount)) {
$this->amount = round($amount, 2);
} else {
$this->amount = $amount;
}
In case of the amount is 114.9984, the result is 114 francs and 100 cents instead of 115 francs 0 cent.
1037ca0
The text was updated successfully, but these errors were encountered: