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)→
3ceil(-2.9)→
-2ceil(items / 10)→
3| Sample variable | Value |
|---|---|
items | 25 |
Gotchas #
Anything that isn't a number is an error:
ceil() needs a number, got text.