https://github.com/bendrucker/precision
Find the decimal precision of a given number
https://github.com/bendrucker/precision
Last synced: over 1 year ago
JSON representation
Find the decimal precision of a given number
- Host: GitHub
- URL: https://github.com/bendrucker/precision
- Owner: bendrucker
- License: mit
- Created: 2015-06-18T12:32:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T21:41:03.000Z (almost 7 years ago)
- Last Synced: 2025-04-10T08:14:05.064Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# precision [](https://travis-ci.org/bendrucker/precision) [](https://greenkeeper.io/)
> 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)