HTBasic Help
×
Menu
Index

Integer

 
"Integer" is a data type. Other data types are I/O path, long, real, complex, static and string. Integers are whole numbers (-1, 35) as opposed to real numbers that can have fractional parts (1.7, 2.34). Integers are stored in two bytes and have a range of -32,768 to +32,767. Integer operations are faster and integers take less space to store.
 
Use the INTEGER statement to declare local integer variables, the COM statement to declare global integer variables and STATIC to declare local persistent variables. Use the ALLOCATE statement to declare a local integer variable which can be DEALLOCATEd dynamically. If a variable is not declared, it will automatically be declared local and real unless CONFIGURE DIM OFF is used.