Chapter
10
I
BASIC
Ke.ywords
fills leading spaces with asterisks. The 2 asterisks also
establish
2
more positions in the field.
PRINT USING
"**####";
44.0
BASIC prints ****44
prints
a
dollar sign immediately before the number.
This specifies
2
more digit positions, one of which
is
the dollar sign. You may not use exponent format with
$$.
PRINT USING
"$$##.##'I;
112.7890
BASIC prints $112.79
fills leading spaces with asterisks and prints a dollar
sign immediately before the number.
PRINT
USING
"**$##.##'I;
8.333
BASIC prints """$8.33
prints
a
comma before every third digit to the left of
the decimal point. The comma establishes another digit
position.
PRINT
US
I
NG 1234.5
BASIC prints 1,234.50
prints in exponential format. The
4
exponent signs are
placed after the digit position characters. You may
specify any decimal point position. You may not use
$$
with exponent format.
PRINT
US
I
NG
".
888888
BASIC prints .88893
+
06
Prints next character as
a
literal character
PRINT
US
I
NG
"-!
##
.
##-!
";
12.34
BASIC prints
!
1
2.3 4!
274