Browse the docs

floor

Rounds a number down to the nearest whole number.

Keyboard Maestro: floor

Details #

floor(number) takes exactly one argument. It rounds towards negative infinity, so floor(-2.1) is -3. Numeric text is accepted.

Parameters #

Takes 1 argument. {{ floor(text) }}

Examples #

floor(2.7)
→ 2
floor(-2.1)
→ -3
floor(minutes / 60)
→ 2
Sample variableValue
minutes135

Gotchas #

  • Anything that isn't a number is an error: floor() needs a number, got text.