LOTUSSCRIPT LANGUAGE


Subtraction operator
Finds the difference between two numbers.

Syntax

numExpr1 - numExpr2

Elements

numExpr1, numExpr2


Return value

The result is a value whose data type is generally the same as that of the operand whose data type is latest in this ordering: Integer, Long, Single, Double, Currency. For example, if one operand is a Long and the other is a Currency, then the data type of the result is Currency.

The exceptions are:


Example

Print 5 - 3.4   ' Prints 1.6

See Also