Negation

From QB64.org wiki
Revision as of 00:33, 12 November 2010 by Clippy (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

'Negation is the process of changing the sign of a positive number to negative.


Usage: number% = -number%


  • Negation can be performed by adding a negative (- minus) sign to a number or by multiplying or dividing a number by any negative value.
  • If a negative value is negated, the value of the number becomes positive.


See also:"



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