Floor
Not available in this language yet.
Floor( value )
Floor( value )
Floor( value )
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
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 query below 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.
System.out.println(
client.query(
Arr(
Floor(Value(7.0)),
Floor(Value(1.11)),
Floor(Value(2.99))
)
).get());
client.query([
q.Floor(7.0),
q.Floor(1.11),
q.Floor(2.99),
])
.then((ret) => console.log(ret))
println(Await.result(
client.query(
Arr(
Floor(7.0),
Floor(1.11),
Floor(2.99)
)
),
5.seconds
))
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
[7.0, 1.0, 2.0]
[ 7, 1, 2 ]
[7.0, 1.0, 2.0]
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!