LassoScript Utility
Basics Browse Detail

/ Division

Tag Link / Division Category Symbol
Type Symbol Source Available No
Support Preferred Version 5.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


/ divides the value of the right parameter by the value of the left parameter and returns the resulting value.

This symbol performs mathematical division if both parameters contain decimal or integer values. The result will be a decimal if either parameter is a decimal value.

This symbol cannot be used with string values. The right parameter must not be equal to 0.

Note: If the parameter on the right hand side of the symbol is a negative literal it should be surrounded by parentheses. For example, (4 / (-2)).


[Output: Left_Parameter / Right_Parameter]

Output: Left_Parameter / Right_Parameter;

[Variable: 'Result'=Left_Parameter / Right_Parameter]

(Variable: 'Result') = Left_Parameter / Right_Parameter;

$Result = Left_Parameter / Right_Parameter;


Required Parameters
Left_Parameter The dividend of the calculation. The value which is to be divided.
Right_Parameter The divisor of the calculation. The value by which the dividend is to be divided.


To output the result of dividing one value by another:

Use the division symbol /. The following example outputs the result of dividing 10 by 5.

[Output: 10 / 5]