round
Modified on Tue, 22 Aug 2023
Description
Compute a number rounded to a specified precision
Syntax
round(number, precision)
Parameters
| Input Parameter | Type | Description |
|---|---|---|
| number | number | The number to be rounded |
| precision | number | The number of decimal places to round to |
Return value
| Type |
|---|
| number |
Sample
| Example | Result | Description |
|---|---|---|
| round(15.736, 2) | 15.74 | Returns the input number rounded to 2 decimal places |
To view all the Math and Number functions, click here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article