Skip to content

floor

Syntax

floor(x)

Parameters

x
An expression that evaluates to a number.

Returns

Returns the largest integer value less than or equal to x.

Description

This action returns the largest integer value less than or equal to the given value.

Examples

The following examples all assign some numeric my_variable to 20:

my_variable = floor(20)
my_variable = floor(20.14159)
my_variable = floor(20.5)
my_variable = floor(20.987654)

See Also