AMSTRAD cpc 6128 User Instruction page 181

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

Advertisement

* * £
(Specifies three digit positions.) Acts
* *
and
£ £
options combined, i.e.
leading
*
asterisks and
£
sign.
Example template:
**£######,. ##
$ $
(Specifies two digit positions.) Specifies that a
$
sign be printed
immediately before the first digit or decimal point (after any leading sign).
Note that the $ will occupy one ofthe digit positions.
Example template:
$$######,. ## .
* * $
(Specifies three digit positions.) Acts as
* *
and
$ $
options combined, i.e.
leading
*
asterisks and $ sign.
Example template:
**$######,. ##
+
Specifies that + or - is to be printed, as appropriate. If the + appears at the
beginning of the template, the
+
sign is printed immediately before the
the number (and any leading currency sign). Ifthe
+
appears at the end of
the template, the sign is printed after the number (and any exponent
part).
Example template:
+ # # # # • # # # #
The - sign may only appear at the END of a template. It specifies that - is
to be printed after any negative number (and exponent part). If the
number is positive, a space will be printed. A - sign is printed before a
negative number by default, unless countermanded by the use of this
template.
Example template:
# # # # • # # # # -
t t t t
Specifies that the number is to be printed using the exponent option. The
t t t t
in the template should appear AFTER the digit positions, but
BEFORE any trailing
+
or - sign.
Example template:
# • # # # #
t t t t
+
The <format template> for a number may not exceed 20 characters. Numbers are
rounded to the number of digits printed.
If the format template is too small for the input expression, for example:
PRINT USING "####";12345678
.... the printed result is NOT shortened to fit the template, but is instead printed in its
entirety, preceded by a % sign, to indicate 'format failure'.
Chapter 3 Page 62
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents