Ceil

Not available in this language yet.
Ceil( value )
Ceil( value )
Ceil( value )
Not available in this language yet.
Not available in this language yet.
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.

Parameters

Argument Type Definition and Requirements

value

Numbers

The ceil of this value.

Returns

A number which is the ceil of value.

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.

System.out.println(
    client.query(
        Arr(
            Ceil(Value(7.0)),
            Ceil(Value(1.11)),
            Ceil(Value(2.99))
        )
    ).get());
client.query([
  q.Ceil(7.0),
  q.Ceil(1.11),
  q.Ceil(2.99),
])
.then((ret) => console.log(ret))
println(Await.result(
  client.query(
    Arr(
      Ceil(7.0),
      Ceil(1.11),
      Ceil(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, 2.0, 3.0]
[ 7, 2, 3 ]
[7.0, 2.0, 3.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!