$round
Rounds a floating-point number to the nearest unit.
Usage
This function has two fields.
Field | Description | Type | Required |
---|---|---|---|
number | The number to round. | Number | Yes |
unit | Amount of decimals to leave. | Integer | Yes |
Examples
Example #1
Example #2
Example #3
Last updated