floor - ryzom/ryzomcore GitHub Wiki


title: Floor description: published: true date: 2023-03-12T15:19:06.216Z tags: editor: markdown dateCreated: 2023-03-12T15:19:03.117Z

floor

The floor native AI script function returns the highest integer that is lower than or equal to the input value.

Syntax

(floored_value: f)floor(value: f) // floor_f_f

Arguments

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

Return Value

  • floored_value (float): The floored integer value.

Example

(count)floor(value);

This example code floors the value of value to the nearest lower integer value and returns the result as a float.

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