Skip to content
Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Floor description: published: true date: 2023-03-16T23:06:43.894Z tags: editor: markdown dateCreated: 2023-03-16T22:23:12.384Z

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.

Clone this wiki locally