round off number removing decimal places javascript code example Example: round decimal js Math.round(num * 100) / 100