- subtracts the value of the right parameter from the left parameter and returns the resulting value.
This symbol performs mathematical subtraction if both parameters contain decimal or integer values. The result will be a decimal if either parameter is a decimal value.
This symbol deletes the substring defined by the right parameter from the left parameter if either parameter is a string value. The result is a string value.
The subtraction symbol can also be used as a unary operator to change the sign of a number to negative. When used in this way it should only be used with integer or decimal literals and should be surrounded by parentheses when necessary to make its use clear. For example, (-4) or (-8.5).
Note for Lasso versions before 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 - (-1)).
left parameter - right parameter
Code
10 - 3
Result
7
Code
10 - 3.0
Result
7.000000
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
Recent Comments