Ceiling method (number)

Returns the smallest integral value that is greater than or equal to this number.

Syntax

number.Ceiling

Returns the smallest integral value that is greater than or equal to number.

Example

{% Var number1 = 1.234 %}
{% Var number2 = 4.567 %}
{% Var number3 = 8 %}
{% Var number4 = -0.1 %}
{% Var number5 = -5.9 %}

Answers: {{ number1.Ceiling }},
         {{ number2.Ceiling }},
         {{ number3.Ceiling }},
         {{ number4.Ceiling }},
         {{ number5.Ceiling }}

The above example would output: Answers: 2, 5, 8, 0, -5