Numeric Expression - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

These items are represented by the various terms, and enclosed in angle brackets q >. For example,
in various places an expression which yields a numeric result is required, this is represented by :
<numeric expression>
Anything not enclosed by angle brackets is required as given. For example the S T 0 P command
takes the form :
STOP
Where there is an optional part in a definition, the optional part is enclosed in square brackets. For
example, if a numeric expression were to be optional then it would appear:
If an optional part may be repeated (so may appear any numbe: of times, including none at all) an
asterisk is included after the closing square bracket. For example, a string of digits, requiring at
least one digit, would appear :
Such an expression might be:
In many places a list of items separated by commas is used. A short form is used, which is best
illustrated by example, thus :
<list of: <expression> means: <expression>[,<expression>]* or:
<list of: [#]<number> means: [#]<number>[ ,[#]<number>]*
an example of which is:
The list may be a single object. If the list contains more than one object, then each additional object
must be preceded by a comma delimiter, since it marks the boundary or limit between items that the
computer must treat separately.
Numbers may be expressed in several forms:
a. <unscaled numbers>
. . . ..are numbers without exponentiation - i.e. those with no exponent part.
b. <scaled numbers> are numbers that are ' raised to tee power' or ' scaled' using the form:
2E4 (2 times 10 to the power of 4, or 2.10
. . . . .the exponent part may be either positive, or negative.
[<numeric expression>]
<digit>[<digit>]*
34
or 344
or 345678 etc
3,4
or 3,4,4
or 3,4,5,6,7,8 etc
)
4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents