FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
Floor
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
Floor( value )
floor( value )
Floor( value )
Floor( value )
Floor( value )
Description
The Floor
function returns the largest value that is less than or
equal to the argument and is equal to a mathematical integer.
Examples
The following query executes an array of independent floor operations and returns the results in an array. The result array position matches the execution array position. The top operation in the execution array, floor of 7.0, returns a long value of 7 in the top position of the result array.
[ 7, 1, 2 ]
[7.0, 1.0, 2.0]
[7 1 2]
Arr(DoubleV(7), DoubleV(1), DoubleV(2))
[ 7, 1, 2 ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!