Browse the docs

ceil

Rounds a number up to the nearest whole number.

Keyboard Maestro: ceil, ceiling

Details #

ceil(number) takes exactly one argument. It rounds towards positive infinity, so ceil(-2.9) is -2. Numeric text is accepted.

Parameters #

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

Examples #

ceil(2.1)
→ 3
ceil(-2.9)
→ -2
ceil(items / 10)
→ 3
Sample variableValue
items25

Gotchas #

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