-

From QB64 Wiki
Revision as of 00:37, 12 November 2010 by imported>Clippy
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)

Mathematical Operations




Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By usage
Main WIKI Page