Previous PageNext Page

8.2.14 Negation and Subtraction Operator (-)

Used to find the difference between two expressions or to indicate the negative value of a numeric expression.
 

Syntax 1

result = expression1-expression2

Syntax 2

-expression

Arguments

result
Any numeric variable.
expression
Any numeric expression.
expression1
Any numeric expression.
expression2
Any numeric expression.

Remarks

In Syntax 1, the - operator is the arithmetic subtraction operator used to find the difference between two numbers. In Syntax 2, the - operator is used as the unary negation operator to indicate the negative value of an expression.
 
If one or both expressions are Null expressions, result is Null. If an expression is Empty, it is treated as if it were 0.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page