round decimal to nearest hundredth javascript code example
Example: round to nearest decimal javascript
round(12345.6789, -1) // 12350
round(12345.6789, -2) // 12300
round(12345.6789, -1) // 12350
round(12345.6789, -2) // 12300