2021-04-25 22:40:25 +00:00
|
|
|
The [[-]] mathematical operator performs subtraction on two numerical values or [[negation|negates]] a single value.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2021-02-06 21:51:34 +00:00
|
|
|
{{PageSyntax}}
|
2021-04-25 22:40:25 +00:00
|
|
|
:return_value = number1 [[-]] number2
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* Numbers used can be any literal or variable numerical value type.
|
|
|
|
* Subtracting a negative value will actually perform addition with the other value.
|
|
|
|
* Subtracting a negative or [[negation|negated]] value will make the return value more positive.
|
2021-02-06 21:51:34 +00:00
|
|
|
* Addition and subtraction are the last operations performed in QBasic's normal order of operations.
|
2015-08-02 12:12:44 +00:00
|
|
|
* Subtraction cannot be performed on [[STRING]] values.
|
|
|
|
|
|
|
|
|
2021-02-06 21:51:34 +00:00
|
|
|
{{PageSeeAlso}}
|
|
|
|
* [[+|+ positive]] (addition operator)
|
|
|
|
* [[Mathematical Operations]]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|