Math.round()¶
Description¶
Round the number value to the specified precision.
Syntax¶
Parameters¶
| Parameter | Type | Description |
|---|---|---|
value |
Number |
The number to be rounded. |
precision |
Number |
The precision, the number of digits after the decimal point. |
Return value¶
| Type | Description |
|---|---|
Number |
The number rounded to the specified precision. |