Divide method (number)

Divides this number by a specified number value.

Syntax

number1.Divide(number2)

Returns the result of dividing number1 (dividend) by number2 (divisor) as a number value.

Example

{% Var daysInYear = 365.242 %}
{% Var monthsInYear = 12 %}

The mean number of days in a month is: {{ daysInYear.Divide(monthsInYear) }}
Half the number of months in a year is: {{ monthsInYear.Divide(2) }}

Remarks

If number2 is zero or the result of dividing of number1 by number2 falls outside the range of permitted values for a number it will cause a template error.