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)→
2floor(-2.1)→
-3floor(minutes / 60)→
2| Sample variable | Value |
|---|---|
minutes | 135 |
Gotchas #
Anything that isn't a number is an error:
floor() needs a number, got text.