Tag Link | [Math_Div] | Category | Math |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 3.0 |
Change | Unchanged | Data Source | Any |
Output Type | Decimal or Integer | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x |
[Math_Div] returns the result of dividing each of multiple parameters in order from left to right. Each parameter is cast to an integer or decimal value. The result is an integer if all the parameters were integers or a decimal otherwise.
Equivalent to performing a series of operations using the / symbol except that the values passed in to the [Math_Div] tag are automatically cast to numeric values.
[Math_Div: Integer or Decimal Values]
Required Parameters | |
---|---|
Integer or Decimal Values | Starting from the left, each successive value will be divided to generate the final result. |
To add several numbers:
Use the [Math_Div] tag. The following example divides 8 by 4 and then by 2, resulting in a final value of 1.
[Math_Div: 8, 4, 2]
1