number-digit
v1.0.6
Published
[![Build Status](https://travis-ci.org/gonenoob/number-digit.svg?branch=master)](https://travis-ci.org/gonenoob/number-digit)
Downloads
3
Readme
number-digit
Install
$ npm install --save number-digit
Usage
const { minInt, minDec, maxDec } = require('number-digit')
Example
const { minInt, minDec, maxDec } = require('number-digit')
let num = 27.1335
let minIntNum = minInt(num, 3) // 027.1335
let minDecNum = minDec(num, 5) //27.13350
let maxDecNum = maxDec(num, 3) //27.134