[Math_Add] returns sum of multiple parameters. Each parameter is cast to an integer or decimal value and then added to the total. 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_Add] tag are automatically cast to numeric values.
[Math_Add: Integer or Decimal Values]
Use the [Math_Add] tag. The following example adds five numbers. The result is an integer since all the parameters were integers.
[Math_Add: 1, 2, 3, 4, 5]
15
Tag Link | [Math_Add] | Category | Math |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 3.0 |
Output Type | Decimal or Integer | Security | None |
Implementation | Internal | Sets | Lasso 6.0, Lasso 5.0,LDML3x |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft