Rounding Value Is Math.Round JavaScript var a = 3000000; var b = 56; var total = 0; total = (0.200 * 1); alert(Math.round(total),3);