EasyManua.ls Logo

Sinclair QL - Page 206

Sinclair QL
422 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A string
IS
a sequence
of
characters up
to
32766
characters long. Variables
are
assumed
string
to
be type string
if
the variable name
is
suffixed
by
a $. String data
IS
represented by
enclosing the required characters
In
either single or double quotation
marks.
syntax: identifier$ I
"text"
example:
i.
string
variables$
ii.
"this
is
string
data"
iii.
"this;s
another
string
ll
Integers
are
wrole numbers
In
the range -32768
to
+32767.
Variables
are
assumed
to
be
Integer
If
the variable identifier
IS
suffixed
with
a percent
%.
There
are
no integer
constants
in
SuperBASIC,
so
all
constants
are
stored
as
floating
point
numbers.
syntax:
Identifier'l/o
example:
I.
counter%
il.
size
limitY.
ill.
this_is_an_integer_variabLe%
Floating
pOint
numbers
are
in
the range
±(lO-
S
"
to
10·6"), with 8 significant digits.
Floating point
is
the default data type
in
SuperBASIC
All
constants
are
held
in
floating
point form and can be entered using exponent notation
syntax:
Identifier I constant
example:
i.
current
accumulation
Ii.
76.2356-
IIi.
354E25
data
types
v~riables
integer
floating point
Type
name has the same form
as
a standard SuperBASIC identifier and
is
used by the
name
system
to
name Mlcrodrive flies
etc.
syntax: identifier
example:
i.
mdv1
data
fi
Le
ii.
ser1e
12/84
15