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.

Parameters

Argument Type Definition and Requirements

value

Number

Take the floor of this value.

Returns

A number which is the result of the Floor operation.

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());
[
   7.0,
   1.0,
   2.0
]