round up method javascript code example
Example 1: javascript ceiling
var ceiling1 = Math.ceil(4.7); //5
var ceiling2 = Math.ceil(-3.4); //-3
Example 2: round down the number javascript
+3.5 => +3.0
-3.5 => -4.0
+3.5 => +3.0 using Math.floor()
-3.5 => -3.0 using Math.ceil()