Difference between revisions of "-"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
(Created page with 'The '''-''' mathematical operator performs subtraction on two numerical values.')
 
imported>Clippy
Line 1: Line 1:
 
The '''-''' mathematical operator performs subtraction on two numerical values.
 
The '''-''' mathematical operator performs subtraction on two numerical values.
 +
 +
 +
 +
''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 the last operations performed in Qbasic's normal order of operations.
 +
* Subtraction cannot be performed on [[STRING]] values.
 +
 +
 +
 +
''See also:''
 +
 +
[[+]] (addition operator)
 +
 +
[[Mathematical Operations]]
 +
 +
 +
 +
{{PageNavigation}}

Revision as of 03:14, 3 July 2010

The - mathematical operator performs subtraction on two numerical values.


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:

+ (addition operator)

Mathematical Operations




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