Sha256: f0cfe60146ae9667ddea5450b70cd75306fee218960fcc59a0315d070b5c070a
Contents?: true
Size: 195 Bytes
Versions: 19
Compression:
Stored size: 195 Bytes
Contents
module.exports = function toNumber(num, precision) { if (num == null) return 0; var factor = Math.pow(10, isFinite(precision) ? precision : 0); return Math.round(num * factor) / factor; };
Version data entries
19 entries across 19 versions & 1 rubygems