@@ -58,7 +58,7 @@ class Price | |||
public static function numberTwoDecimals($number) | |||
{ | |||
return number_format(((int) ($number * 100)) / 100, 2) ; | |||
return number_format(( ($number * 100)) / 100, 2) ; | |||
} | |||
} |
@@ -25,7 +25,7 @@ function getPriceWithTax(priceWithoutTax, taxRate) { | |||
} | |||
function numberTwoDecimals(num) { | |||
return (parseInt((num * 100)) / 100).toFixed(2) ; | |||
return Number(num).toFixed(2) ; | |||
} | |||
/** |