- round(decimalPlaces, v, roundUp?): number
Parameters
- decimalPlaces: number
- v: number
Optional
roundUp: boolean
Returns number
- round(decimalPlaces, roundUp?): ((v: number) => number)
Parameters
- decimalPlaces: number
Optional
roundUp: boolean
Returns ((v: number) => number)
- (v): number
Returns number
Rounds a number.
If one parameter is given, it's the decimal places, and a rounding function is returned:
If two parameters are given, the first is decimal places, the second the value to round.
Param: decimalPlaces
Returns