Lasso Soft Inc. > Home

[ integer->/ ]

Method

/ 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 for Lasso versions earlier than Lasso 9: 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)).

  • Syntax
left parameter / right parameter
Examples
  • Beginner

To perform an integer division

Code

10 / 2

Result

5

To perform a decimal division

Code

10 / 2.0

Result

5.000000

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft