limit upto two decimal places in javascript code example Example: limit numbers after decimal point in javascript var num = 5.56789; var n = num.toFixed(2);