-
Notifications
You must be signed in to change notification settings - Fork 94
ceil
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Ceil description: published: true date: 2023-03-16T23:05:19.227Z tags: editor: markdown dateCreated: 2023-03-16T22:21:23.616Z
The ceil native AI script function returns the lowest integer higher than or equal to the input value.
(count)ceil(value: f)
- value (float): The real value to be ceiled.
- ceiled_value (integer): The lowest integer higher than or equal to the input value.
(count)ceil(3.2f); // Returns 4
(count)ceil(5.8f); // Returns 6
These example codes return the lowest integer higher than or equal to the input values.