INTEGER (QuickBasic)

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo | name = INTEGER | formattype = electronic | subcat = Data types | subcat2 = QuickBASIC | caption = }} {{DISPLAYTITLE:INTEGER...")
 
(Copy-editing)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
| name          = INTEGER
 
 
| formattype    = electronic
 
| formattype    = electronic
 
| subcat        = Data types
 
| subcat        = Data types
| subcat2        = QuickBASIC
+
| subcat2        = QuickBasic data types
 
| caption        =  
 
| 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.
 
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.
  
= Syntax =
+
== Syntax ==
  
 
Using the <code>DIM</code> statement:
 
Using the <code>DIM</code> statement:
Line 21: Line 18:
  
 
Using the suffix:
 
Using the suffix:
{{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.
 
 
= Syntax =
 
 
Using the <code>DIM</code> statement:
 
  
 
<pre>
 
<pre>
DIM i AS INTEGER
+
i% = 38
i = 38
+
PRINT i%
PRINT i
+
 
</pre>
 
</pre>
  
Using the suffix:
+
== References ==
  
<pre>
+
* [https://qb64.com/wiki/INTEGER INTEGER] data-type on ''qb64.com''
i% = 38
+
PRINT i%
+
</pre>
+
<pre>
+
i% = 38
+
PRINT i%
+
</pre>
+

Latest revision as of 18:06, 31 July 2023

File Format
Name INTEGER (QuickBasic)
Ontology

The INTEGER type in QuickBASIC stores non-floating-point numbers from -32,768 to 32,767. INTEGER types can be defined with the % suffix.

[edit] Syntax

Using the DIM statement:

DIM i AS INTEGER
i = 38
PRINT i

Using the suffix:

i% = 38
PRINT i%

[edit] References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox