floor()

This function returns the floor value. i.e. The greatest mathematical integer that is less than or equal to the given number.

Bash
floor(number) #Output: Number

Examples

Parser expression

Description

Bash
%{floor(-1.3)}

This example returns:

-2

Bash
%{floor(0)}

This example returns:

0

Bash
%{floor(2.3)}

This example returns:

2

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

number

number

Any given number or numeric field code.

Output

This function returns a number


(books) Use cases and examples