how to round up to nearest even number js code example
Example 1: javascript round to nearest 10
var rounded = Math.round(number / 10) * 10
Example 2: round up javascript
Math.round(3.14159) // 3
Math.round(3.5) // 4
Math.floor(3.8) // 3
Math.ceil(3.2) // 4