Originariamente inviata da leffy85 ho risolto così: codice: costo=Math.round(costo*100)/100; grazie mille Un'alternativa meno verbosa: codice: costo=costo.toFixed(2); https://www.w3schools.com/jsref/jsref_tofixed.asp
costo=Math.round(costo*100)/100;
costo=costo.toFixed(2);
Regole del Forum