Round numbers to the nearest multiple with an optional direction.
$ npm install --save round
Required
Type: number
The value to round.
Type: number
Default: 1
The multiple to round to.
Type: string
Values: up
/ down
If no direction is supplied, the number will be rounded to the nearest direction, defaulting to up if the value is equidistant from the rounded values.
Convenience method for rounding down.
Convenience method for rounding up.