[code:1:7d628eaf94] totalprice = Math.round(totalprice*100)/100;[/code:1:7d628eaf94]
substitute the second instance of totalprice with the variable that needs to be rounded to 2 decimal places
javascript, float, decimal, placesjavascript, eaf, totalprice, substitute, variable, rounded,