An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# precision [![Build Status](https://travis-ci.org/bendrucker/precision.svg?branch=master)](https://travis-ci.org/bendrucker/precision) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/precision.svg)](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)