diff options
Diffstat (limited to 'deps/npm/node_modules/lodash/math/round.js')
-rw-r--r-- | deps/npm/node_modules/lodash/math/round.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash/math/round.js b/deps/npm/node_modules/lodash/math/round.js new file mode 100644 index 0000000000..5c69d0c15c --- /dev/null +++ b/deps/npm/node_modules/lodash/math/round.js @@ -0,0 +1,25 @@ +var createRound = require('../internal/createRound'); + +/** + * Calculates `n` rounded to `precision`. + * + * @static + * @memberOf _ + * @category Math + * @param {number} n The number to round. + * @param {number} [precision=0] The precision to round to. + * @returns {number} Returns the rounded number. + * @example + * + * _.round(4.006); + * // => 4 + * + * _.round(4.006, 2); + * // => 4.01 + * + * _.round(4060, -2); + * // => 4100 + */ +var round = createRound('round'); + +module.exports = round; |