EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 268

Radio Shack TRS-80 Model 4
418 pages
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...
+
Specifiers
for
Numeric
Fields:
# Print the same number of digit positions
as
number
signs (
#
).
If
the number to
be
printed has fewer
digits than positions specified, the number is
right-justified (preceded by spaces). Numbers are
rounded
as
necessary. You may insert a decimal
point
at
any position.
In
that case, the digits
preceding the decimal point are always printed (as
zero, if necessary).
If
the number to
be
printed
is
larger than the
specified numeric field, a percent sign ( % )
is
printed
in
front of the number.
If
rounding the number
exceeds the field, a percent sign
is
also printed
in
front
of
the rounded number.
PRINT USING
"##.##";111.22
%111.22
If
the number of digits specified exceeds
24,
an
"Illegal function call" occurs.
PRINT USING
"##.##";.75
0.75
PRINT USING
"###.##";876.567
876.57
Print the sign of the number. The plus sign may be
typed
at
the beginning or at the end of the format
string.
PRINT
USING"
+
##
.##
- 98.45,3.50,22.22, -
.9
- 98.45 +3.50 +22.22
PRINT USING
"##.##
+
- 98.45,3.50,22.22,
-.9
98.54 - 3.50 + 22.22 +
".
,
".
-0.90
0.90-
**
(Note the use of spaces
at
the end of a format string
to separate printed values).
Print a negative sign after negative numbers (and a
space after positive numbers).
PRINT USING
"###.#
-";
-768.660
768.7 -
Fill
leading spaces with asterisks. The two asterisks
also establish two more positions
in
the field.
PRINT USING
"**####";
44.0
****44
2-142

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals