how to precise with 2 digits after decimal in javascript code example Example: round number 2 decimals javascript Math.round((num + Number.EPSILON) * 100) / 100