Skip to content
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

ceil

The ceil native AI script function returns the lowest integer higher than or equal to the input value.

Syntax

(count)ceil(value: f)

Arguments

  • value (float): The real value to be ceiled.

Return Value

  • ceiled_value (integer): The lowest integer higher than or equal to the input value.

Example

(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.

Clone this wiki locally