HTBasic Help
×
Menu
Index

Long

 
Long is a data type. Other data types are I/O path, integer, real, complex, and string. Longs are whole numbers (-1, 35) as opposed to real numbers that can have fractional parts (1.7, 2.34). Longs are stored in two bytes and have a range of -2,147,483,648 to 2,147,483,647.
Use the LONG statement to declare local integer variables, the COM statement to declare global integer variables, and the STATIC statement to declare local persistent variables. Use the ALLOCATE statement to declare a local long 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.