-
Operator
Gives the difference between two numeric expressions or the negative value of a numeric expression.
Syntax
Binary construct
expression_1 - expression_2
Unary construct
- expression_1
Parts
expression_1
- A numeric expression.
expression_2
- In the binary construct, a numeric expression.
Instructions
The binary operator -
subtracts the value of expression_2
from the value of expression_1
and returns the difference.
The unary operator -
negates the value of expression_1
.
If the value is positive, it returns a negative value.
If the value is negative, it returns a positive value.
If the value is zero, it returns zero.
Examples
TODO
See also
Other elements that use this symbol
- Date literals (for example,
2038-01-19
). See DateTime Data Type. - Null literals (for example,
|----
). - Floating-point literals (for example,
1.0e-6
). See Real64 Data Type.