1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/-.md

19 lines
697 B
Markdown
Raw Permalink Normal View History

2022-12-25 03:14:48 +00:00
The [-](-) mathematical operator performs subtraction on two numerical values or [negation](negation) 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 [negation](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](STRING) values.
## See Also
* [+](+) (addition operator)
* [Mathematical Operations](Mathematical-Operations)