Skip to main content

$floor

The $floor operator returns the largest integer value that is less than or equal to the input value.

Input

  • A single numeric value

Output

  • The floor of the input value (rounded down to the nearest integer)

Examples

Decimal Below .5

Result: 3

Decimal Above .5

Result: 7

Exact Integer

Result: 5

Negative Number

Result: -4

Field Value

Result: The floor of the average_score field