toPrecision
See source codeGet a number to a precision.
function toPrecision(n: number, precision?: number): number
Parameters
Name | Description |
---|---|
|
The number. |
|
The precision. |
Returns
number
Prev
toFixedNext
uniqGet a number to a precision.
function toPrecision(n: number, precision?: number): number
Name | Description |
---|---|
|
The number. |
|
The precision. |
number