From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
| This item was deprecated in version 2020r2.
Please use Ceiling as a replacement.
Returns the ceiling of a number by rounding it up to the nearest whole number.
Get the ceiling of a number:
Ceil only works to whole numbers so if you want to round a value to a specific number of decimal places, you first have to multiple the number by 10^(number of decimal places), calculate the ceil and then divide it by the same value to get the number. For example, this example rounds 1.2345 to 1.3: