User`s manual

3-5
+ When a + sign is placed at the beginning or end of the field, it
will be printed as specified as a + for positive numbers or as a -
for negative numbers.
When a – sign is placed at the end of the field, it will cause a
negative sign to appear after all negative numbers and will
appear as a space for positive numbers.
% spaces % To specify a string field of more than one character, % spaces %
is used. The length of the string field will be 2 plus the number
of spaces between the percent signs.
! Causes the Computer to use the first string character of the
current value.
Any other character that you include in the USING string will be displayed
as a string literal.
The following program will help demonstrate these format specifiers:
10 INPUT A$, A
20 PRINT USING A$;A
30 GOTO 10
RUN this
program and try
various specifiers and strings for A$ and various
values for
A.
For Example:
RUN
?##.##,12.12
12.12
?###.##,12.12
12.12
?##.##,121.21
%121.21
The % sign is automatically printed if the field is not large enough to contain
the number of digits found in the numeric value. The entire number to the
left of the decimal will be displayed preceded by this sign.
?##.##,12.127
12.13
Note that the number was rounded to two decimal places.