precision
Version:
Find the decimal precision of a given number
33 lines (19 loc) • 451 B
Markdown
precision [](https://travis-ci.org/bendrucker/precision)
Find the decimal precision of a given number
# Install
```
npm install --save precision
```
# Usage
```js
var precision = require('precision')
precision(1.123)
//=> 3
```
# API
### `precision(value)`
#### value
*Required*
Type: `number`
# License
MIT © [Ben Drucker](http://bendrucker.me)