X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Ffloor.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Ffloor.js;h=e5e6b035f534acea6730414f7eb0b36b16b966b6;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/floor.js b/node_modules/uncss/node_modules/lodash/floor.js new file mode 100644 index 000000000..e5e6b035f --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/floor.js @@ -0,0 +1,25 @@ +var createRound = require('./internal/createRound'); + +/** + * Computes `number` rounded down to `precision`. + * + * @static + * @memberOf _ + * @category Math + * @param {number} number 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;