LONG (QuickBasic)
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo | name = LONG | formattype = electronic | subcat = Data types | subcat2 = QuickBASIC | caption = }} {{DISPLAYTITLE:LONG}} Th...") |
(Copy-editing) |
||
Line 1: | Line 1: | ||
{{FormatInfo | {{FormatInfo | ||
− | |||
| formattype = electronic | | formattype = electronic | ||
| subcat = Data types | | subcat = Data types | ||
− | | subcat2 = | + | | subcat2 = QuickBasic data types |
| caption = | | caption = | ||
}} | }} | ||
− | |||
− | |||
The '''LONG''' type in [[QuickBASIC]] stores non-floating-point numbers from -2147483648 to 2147483647. LONG types can be defined with the <code>&</code> suffix. | The '''LONG''' type in [[QuickBASIC]] stores non-floating-point numbers from -2147483648 to 2147483647. LONG types can be defined with the <code>&</code> suffix. | ||
− | = Syntax = | + | == Syntax == |
Using the <code>DIM</code> statement: | Using the <code>DIM</code> statement: | ||
Line 27: | Line 24: | ||
</pre> | </pre> | ||
− | = References = | + | == References == |
* [https://qb64.com/wiki/LONG LONG] data-type on ''qb64.com'' | * [https://qb64.com/wiki/LONG LONG] data-type on ''qb64.com'' |
Latest revision as of 18:07, 31 July 2023
The LONG type in QuickBASIC stores non-floating-point numbers from -2147483648 to 2147483647. LONG types can be defined with the &
suffix.
[edit] Syntax
Using the DIM
statement:
DIM i AS LONG i = 38 PRINT i
Using the suffix:
i& = 38 PRINT i&
[edit] References
- LONG data-type on qb64.com