javascript division round down code example
Example 1: javascript round down
Math.floor(x);
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()
Example 3: javascript floor
Math.floor(1.6);
result: 1