floor

Math
since 3.10.0

Arguments

  • number The number to round down.
  • number The precision to round down to.

Returns

number the rounded down number.

Computes number rounded down to precision.

Example of Lodash _.floor

_.floor(4.006);
// => 4

_.floor(0.046, 2);
// => 0.04

_.floor(4060, -2);
// => 4000