how to round to the nearest 2 decimals in javascript code example Example: javascript round decimal 2 digits var numb = 123.23454; numb = numb.toFixed(2);