/ Division

Symbol

Symbol

Preferred

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]

<?LassoScript
  Output: Left_Parameter / Right_Parameter;
?>

[Variable: 'Result'=Left_Parameter / Right_Parameter]

<?LassoScript
  (Variable: 'Result') = Left_Parameter / Right_Parameter;
?>

<?LassoScript
  $Result = Left_Parameter / Right_Parameter;
?>

/ Division