Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    round-precisionpublic

    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

    install

    npm i round-precision

    Downloadslast 7 days

    943

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar