package
Round a number to a specified decimal precision
npm install round-precisionGitHub-flavored package documentation.
Across all versions, last 30 days.
469,125 in 30 days
Runtime metadata.
Tagged topics.
Round a number to a specified decimal precision
$ npm install --save round-precisionvar roundPrecision = require('round-precision')
roundPrecision(12.34, 1)
//=> 12.3roundPrecision(value, places) -> numberRequired
Type: number
A finite number to round.
Required
Type: number
A non-negative number of integer places.
MIT © Ben Drucker
Estimated unpacked size across 3 packages.
2.6 kB
Includes dependencies.