-: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "The '''-''' mathematical operator performs subtraction on two numerical values or negates a single value. ''Syntax:'' 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 negated value will make the return value more positive. * Addition and subtraction are th...") |
TheSnowDog (talk | contribs) m (QBasic capitalisation) Tag: visualeditor |
||
Line 12: | Line 12: | ||
* Subtracting a negative value will actually perform addition with the other value. | * 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. | * Subtracting a negative or [[negation|negated]] value will make the return value more positive. | ||
* Addition and subtraction are the last operations performed in | * Addition and subtraction are the last operations performed in QBasic's normal order of operations. | ||
* Subtraction cannot be performed on [[STRING]] values. | * Subtraction cannot be performed on [[STRING]] values. | ||
Revision as of 09:47, 29 April 2022
The - mathematical operator performs subtraction on two numerical values or negates a single value.
Syntax: return_value = number1 - number2
Description
- 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 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.
See also:
+ positive (addition operator)