9bbf097b43e69def20e3115fab385f8d830d2623
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / floor.js
1 var createRound = require('./_createRound');
2
3 /**
4  * Computes `number` rounded down to `precision`.
5  *
6  * @static
7  * @memberOf _
8  * @category Math
9  * @param {number} number The number to round down.
10  * @param {number} [precision=0] The precision to round down to.
11  * @returns {number} Returns the rounded down number.
12  * @example
13  *
14  * _.floor(4.006);
15  * // => 4
16  *
17  * _.floor(0.046, 2);
18  * // => 0.04
19  *
20  * _.floor(4060, -2);
21  * // => 4000
22  */
23 var floor = createRound('floor');
24
25 module.exports = floor;