ceil - ryzom/ryzomcore GitHub Wiki


title: Ceil description: published: true date: 2023-03-12T16:37:31.606Z tags: editor: markdown dateCreated: 2023-03-12T16:37:28.454Z

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.

⚠️ **GitHub.com Fallback** ⚠️