LONG

From QB64 Wiki

Revision as of 18:39, 21 August 2011 by Clippy (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

LONG defines a variable as a 4 byte number type definition for larger INTEGER values.


Syntax:

DIM variable AS LONG


  • Qbasic LONG Integer values can be from -2147483648 to 2147483647.
  • QB64 _UNSIGNED Long Integer values range from 0 to 4294967295.
  • QB64 _UNSIGNED _INTEGER64 values can range from 0 to 18446744073709551615.
  • Decimal point values received will be rounded to the nearest whole number.
  • The LONG variable type suffix is &. _INTEGER64 uses the && suffix.
  • Values can be converted to 4 byte ASCII string values using MKL$ and back with CVL.


See also:



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