Table of Contents

Advertisement

DATA
Data is written with numbers or characters for proces­
sing in the program.
Data with numbers is regarded as
"numeric data" and the data with characters as "string
data".
Either a constant or variable can be assigned
as a data item.
The variables are of two types:
i.e
simple variables and subscripted variables (an array).
The numeric data is divided into three categories,
namely integers, single-precision real numbers, and
double-precision real numbers.
• i
Examples of data are shown in the following table:
String
Integer
Numeric
CONSTANTS
245
3.678
1234.567#
-3.45E35
.345!
"VALUES"
"Your name?"
32
A$
SIMPLE
VARIABLES
ABC?
DAT
SUM$
K?
H!
B$(10,4,8)
X?(N)
ARRAY
VARIABLES
Z!(I,J)
Y#(2,3)
MEMORY USAGE
4 bytes or
8 bytes
1 byte/char.
2 bytes
OCTAL NUMBERS
&7632
&H3AF4
HEXADECIMAL
NUMBERS
3-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents