X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Fgrunt-legacy-log%2Fnode_modules%2Flodash%2Fmath%2Ffloor.js;fp=node_modules%2Fgrunt-legacy-log%2Fnode_modules%2Flodash%2Fmath%2Ffloor.js;h=e4dcae8bf8959a89467ed2784c37344ce119fa2b;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/math/floor.js b/node_modules/grunt-legacy-log/node_modules/lodash/math/floor.js new file mode 100644 index 000000000..e4dcae8bf --- /dev/null +++ b/node_modules/grunt-legacy-log/node_modules/lodash/math/floor.js @@ -0,0 +1,25 @@ +var createRound = require('../internal/createRound'); + +/** + * Calculates `n` rounded down to `precision`. + * + * @static + * @memberOf _ + * @category Math + * @param {number} n The number to round down. + * @param {number} [precision=0] The precision to round down to. + * @returns {number} Returns the rounded down number. + * @example + * + * _.floor(4.006); + * // => 4 + * + * _.floor(0.046, 2); + * // => 0.04 + * + * _.floor(4060, -2); + * // => 4000 + */ +var floor = createRound('floor'); + +module.exports = floor;