forked from Galleondragon/qb64
-
Notifications
You must be signed in to change notification settings - Fork 24
Cory Smith edited this page Sep 1, 2022
·
5 revisions
The - mathematical operator performs subtraction on two numerical values or negation a single value.
return_value = number1 - number2
- 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 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.
- + (addition operator)
- Mathematical Operations