Computes number rounded down to precision.
number
precision
3.10.0
floor(4.006)// => 4floor(0.046, 2)// => 0.04floor(4060, -2)// => 4000 Copy
floor(4.006)// => 4floor(0.046, 2)// => 0.04floor(4060, -2)// => 4000
The number to round down.
Optional
The precision to round down to.
Returns the rounded down number.
Computes
number
rounded down toprecision
.Since
3.10.0
Example