Function: roundNumber()
roundNumber(
input
:string
|number
,decimals
:number
):number
Rounds a number to a specified amount of decimal places.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
input | string | number | undefined | The number to round off |
decimals | number | 0 | The amount of decimals to retain |
Returns
number