1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00
qb64/internal/help/-.txt

22 lines
710 B
Plaintext
Raw Normal View History

2021-04-25 22:40:25 +00:00
The [[-]] mathematical operator performs subtraction on two numerical values or [[negation|negates]] a single value.
{{PageSyntax}}
2021-04-25 22:40:25 +00:00
:return_value = number1 [[-]] number2
{{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.
* Addition and subtraction are the last operations performed in QBasic's normal order of operations.
* Subtraction cannot be performed on [[STRING]] values.
{{PageSeeAlso}}
* [[+|+ positive]] (addition operator)
* [[Mathematical Operations]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}