toPrecision
Public function
Get a number to a precision.
Signature
function toPrecision(n: number, precision?: number): number
Parameters
Name | Description |
---|---|
|
The number. |
|
The precision. |
Returns
number
Source
Public function
Get a number to a precision.
function toPrecision(n: number, precision?: number): number
Name | Description |
---|---|
|
The number. |
|
The precision. |
number