Ceil
Not available in this language yet.
Ceil( value )
Ceil( value )
Ceil( value )
Not available in this language yet.
Ceil( value )
Description
The Ceil
function returns a value that is greater than or equal to the
argument and is equal to the nearest mathematical integer.
Examples
The query below executes an array of independent ceil operations and returns each answer in the result array. The result array position matches the position in the execution array.
Not available in this language yet.
Not available in this language yet.
System.out.println(
client.query(
Arr(
Ceil(Value(7.0)),
Ceil(Value(1.11)),
Ceil(Value(2.99))
)
).get());
[7.0, 2.0, 3.0]
client.query([
q.Ceil(7.0),
q.Ceil(1.11),
q.Ceil(2.99),
])
.then((ret) => console.log(ret))
[ 7, 2, 3 ]
Not available in this language yet.
println(Await.result(
client.query(
Arr(
Ceil(7.0),
Ceil(1.11),
Ceil(2.99)
)
),
5.seconds
))
[7.0, 2.0, 3.0]
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!