The subtraction operator subtracts two values, i.e. a - b.
Syntax
a - b
Input
a | is a value |
Domain type: | any Value domain |
b | is a value |
Domain type: | any Value domain |
Output
- returns: | a real value |
Domain: | system domain Value |
Note:
When one of the operands is undefined, or when both operands are undefined, the output will also be undefined.
Tip:
When the definition symbol = is used, a dependent output map or dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.
Usable in
MapCalc, TabCalc, Simple calculators
Examples
Pocket line calculator examples:
? 10-2 |
returns 8 |
? 2^3-4 |
returns 4.000 |
MapCalc example:
OutMap = InMapA - InMapB
InMapA |
InMapB |
OutMap |
|||||||||||||||||||||||||||
|
|
|
TabCalc example:
OutCol = InColA - InColB
InColA |
InColB |
OutCol |
10 |
1 |
9 |
20 |
2 |
18 |
30 |
3 |
27 |
-40 |
4 |
-44 |
50 |
0 |
50 |
60 |
-1 |
61 |
70 |
? |
? |
? |
-2 |
? |
90 |
-3 |
93 |
See also:
+ | ^ |
* | MOD |