Computes number rounded down to precision.
number
precision
The number to round down.
The precision to round down to.
Returns the rounded down number.
5.7.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
Computes
number
rounded down toprecision
.