ROUND
Rounds a number to a specified number of digits.
| Category | Math |
| Syntax | ROUND(number, [num_digits]) |
Parameters
| Parameter | Required | Description |
|---|---|---|
number | Required | The number you want to round. |
num_digits | Optional | The number of digits to which you want to round (defaults to 0). |
Example
ROUND(3.14159, 2) // → 3.14
ROUND(2.5) // → 3
Auto-generated from the EngCanvas function registry.