Special Characters; Data Types - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

Finally, square brackets enclose optional items in a command or function. For
example:
RUN [,line number>]
.... means that you do not have to follow the keyword RUN with a parameter, but that
you can expand the command by adding the optional parameter <line number>.
Hence, the command could be typed in as:
RUN .... or .... RUN
100
Special Characters
&or &H
&X
#
Prefix for hexadecimal constant
Prefix for binary constant
Prefix for stream director
Data types
Strings may be from 0 to 255 characters long. A <string expression> is an expression
which yields a value oftype string. Strings may be appended to one another using the
+
operator, as long as the resulting string is no greater than 255 characters long.
Numeric data can be either integer or relll. Integer data is held in the range -32768
to 32767 and real data is held to a little over nine digits of precision in the range
±
1.
7E
+
38 with the smallest value above zero approximately 2.9E-39.
A <numeric expression> is any expression that results in a numeric value. It may
simply be numbers, or it may be a numeric variable, or it may be numbers operated on
by
v~riables;just
about anything that is not a <string expression>.
A
<~tream
expression> refers to a <numeric expression> which identifies a screen
window, printer, or disc, where the text is required to 'stream'.
A <list of:<item> describes a parameter which comprises a list of items separated by
commas. The list may contain one, or any number of items, limited by line length.
Type markers are:
%
Integer
I
Real (The default)
$
String
Chapter 3 Page 2
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents