-
Notifications
You must be signed in to change notification settings - Fork 94
floor
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
The floor native AI script function returns the highest integer that is lower than or equal to the input value.
(floored_value: f)floor(value: f) // floor_f_f
- value (float): The real value to be floored.
- floored_value (float): The floored integer value.
(count)floor(value);
This example code floors the value of value
to the nearest lower integer value and returns the result as a float.