0
Q:

always show two decimal places javascript

var myNumber=12.2345;
var myNumberWithTwoDecimalPlaces=parseFloat(myNumber).toFixed(2); //12.23
5
(Math.round(num * 100) / 100).toFixed(2);
0

New to Communities?

Join the community