Lucee Function Reference
round()
Rounds a number to the closest integer.
Example
round(number number,[number precision]):number
Category
number
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| number | number | Yes | Number to round | |
| precision | number | No | 0 | Number of decimal points to round to |