AT&T 6300 Programmer's Manual page 418

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

PRINT USING
Statement
**$
7-262
The **$ at the beginning of a format string
combines the effects of the above two symbols.
Leading spaces will be asterisk-filled and a
dollar sign will be printed before the number.
**$ specifies three more digit positions, one of
which is the dollar sign. For example:
PRINT USING u* *5##.##";2.34
*
* *52.34
A comma that is to the left of the decimal
point in a formatting string causes a comma
to be printed to the left of every third digit to
the left of the decimal point. A comma that is
at the end of the format string is printed as
part of the string. A comma specifies the digit
position for itself. The comma has no effect if
used with the exponential
(MM)
format. For
example:
PRINT USING u####,.##";1234.5
1,234.50
PRINT USING u####.##,";1234.5
1234.50,
Four carets (or up-arrows) may be placed after
the digit position characters to specify
exponential format. The four carets allow
space for E +xx or D+xx to be printed. Any
decimal point position may be specified. The
significant digits are left-justified, and the
exponent is adjusted. Unless a leading+or
trailing + or - is specified, one digit position
will be used to the left of the decimal point to
print a space or a minus sign. For example:

Advertisement

Table of Contents
loading

Table of Contents