Method

divide — divides two numbers and returns the result.

Description

Minimum number of  arguments for this method is two.

Structure of the method:

divide(a, b)

Parameters

a — This is the first parameter and should be a number

b — This is the second parameter and should be a number. If it is 0, the method will not return anything as division by 0 has no meaning and is undefined

Examples
{% set total = divide(5,2) %}
{{total}}

//Output: 2.5

To stay updated with the latest features, news and how-to articles and videos, please join our group on Facebook, Flexie CRM Academy.