how to round number to 2 decimals after the piont in js code example Example: round number 2 decimals javascript Math.round((num + Number.EPSILON) * 100) / 100