JQuery 2 lugares decimais
var total = 100.525444
var final_total = total.toFixed(2); // 100.52
hmt
var total = 100.525444
var final_total = total.toFixed(2); // 100.52
(3.141596).toFixed(2); // 3.14
let money = 1.6;
money.toFixed(2); // 1.60
var myNumber=12.2345;
var myNumberWithTwoDecimalPlaces=parseFloat(myNumber).toFixed(2); //12.23
var example = 3.35464464374256 ;
example = parseFloat(example.toFixed(2)) ; // example == 3.35
var discount = Math.round((100 - (price / listprice) * 100) * 100) / 100;