HTBasic Help
×
Menu
Index

COMPLEX

Reserves storage for complex variables and arrays.
 
 COMPLEX variable [,variable...]
 
Where:
variable = numeric-name [(bounds) [BUFFER]]
bounds = [lower-bound :] upper-bound [,bounds]
lower/upper-bound = integer constant in the range -32768 to 32767.
 
Usage:
COMPLEX Z, C(-10:10,4)
COMPLEX Tx(512) BUFFER
 
Example:     COMPLEX.BAS
 
Description:
COMPLEX declares, dimensions and reserves memory for complex variables and arrays. COMPLEX variables use sixteen bytes of storage space. An array's maximum dimension is six and each dimension can hold a maximum of 32,767 elements. If a lower bound is not specified, the default is the OPTION BASE value (0 or 1). A COMPLEX variable may be declared a buffer by specifying BUFFER after the variable name. Buffer variables are used with the TRANSFER statement.
 
See Also: