INTEGER (QuickBasic)
From Just Solve the File Format Problem
(Difference between revisions)
(→Syntax) |
|||
| Line 1: | Line 1: | ||
| + | {{FormatInfo | ||
| + | | name = INTEGER | ||
| + | | formattype = electronic | ||
| + | | subcat = Data types | ||
| + | | subcat2 = QuickBASIC | ||
| + | | caption = | ||
| + | }} | ||
| + | {{DISPLAYTITLE:INTEGER}} | ||
| + | |||
| + | The '''INTEGER''' type in [[QuickBASIC]] stores non-floating-point numbers from -32,768 to 32,767. INTEGER types can be defined with the <code>%</code> suffix. | ||
| + | |||
{{FormatInfo | {{FormatInfo | ||
| name = INTEGER | | name = INTEGER | ||
| Line 26: | Line 37: | ||
PRINT i% | PRINT i% | ||
</pre> | </pre> | ||
| + | |||
| + | = References = | ||
| + | |||
| + | * [https://qb64.com/wiki/INTEGER INTEGER] data-type on ''qb64.com'' | ||
Revision as of 12:13, 31 July 2023
The INTEGER type in QuickBASIC stores non-floating-point numbers from -32,768 to 32,767. INTEGER types can be defined with the % suffix.
The INTEGER type in QuickBASIC stores non-floating-point numbers from -32,768 to 32,767. INTEGER types can be defined with the % suffix.
Syntax
Using the DIM statement:
DIM i AS INTEGER i = 38 PRINT i
Using the suffix:
i% = 38 PRINT i%
References
- INTEGER data-type on qb64.com