EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 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
Page #275 background imageLoading...
Page #275 background image
Chapter
10
I
BASIC Keywords
Specifiers
for
Numeric Fields:
#
prints the same number of digit positions
as
number
signs
(#I.
Numbers are rounded
as
necessary.
You may insert
a
decimal point
at
any position. BASIC
always prints the digits preceding the decimal point. If
there is no number, BASIC prints
a
zero.
If the number to be printed has fewer digits than posi-
tions specified, the number is right-justified (preceded
by spaces). If the number
to
be printed is larger than
the specified numeric field,
a
percent sign
(%)
is
printed in front
of
the number.
PRINT
US
I
NG
'I##. ##'I;
1
1 1
.22
PRINT
US
I
NG
'I##. ##'I;
.75
PRINT
US
I
NG
I.###.
##";876.567
BASIC prints %111.22, 0.75 and 876.57, respectively.
If the number of digits specified exceeds 24, an "Illegal
function call" occurs.
prints the sign of the number. The plus sign may be
typed
at
the beginning
or
at
the end
of
the format
string.
+
PRINT
USING
'I+##.##
'I;
-98.45,3.50,22.22,-.9
BASIC prints: -98.45
+
3.50
+
22.22 -0.90
PRINT
USING
'I##.##+
'I;
-98.45,3.50,22.22,-.9
BASIC prints: 98.45- 3.50
+
22.22
+
0.90-
(Note the use
of
spaces at the end
of
a format string
to
separate printed values.)
prints
a
negative sign
after
negative numbers (and
a
space after positive numbers).
-
PRINT
USING
lo###.#-";
-768.668
BASIC prints 768.7-.
273

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals