round-precision
Round a number to a specified decimal precision
Last updated 6 years ago by bendrucker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install round-precision 
SYNC missed versions from official npm registry.

round-precision Build Status

Round a number to a specified decimal precision

Install

$ npm install --save round-precision

Usage

var roundPrecision = require('round-precision')
roundPrecision(12.34, 1)
//=> 12.3

API

roundPrecision(value, places) -> number

value

Required
Type: number

A finite number to round.

value

Required
Type: number

A non-negative number of integer places.

License

MIT © Ben Drucker

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 6
Last Day 0
Last Week 4
Last Month 2
Dependencies (2)
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |