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 #48 background imageLoading...
Page #48 background image
Chapter
51
Basic
Concepts
Octal
numbers are the octal representation of decimal numbers.
They contain
1
to
6
digits and are preceded by
&O
or
&.
Al-
though only the
&
is
required, we recommend that you use
&O
for
clarity in your programs. The octal numbers are
0, 1, 2,
3,
4,
5,
6,
and
7.
Here are some octal numbers and their decimal
equivalents:
Octal Decimal
&7
7
&0123
83
&0000456 302
BASIC stores octal numbers as integers.
Constants
Constants are values input to a program that are not subject to
change. Constants can be either string or numeric data (integer,
single or double precision, hexadecimal, or octal).
Numeric data that will not change can be represented as either
a string or numeric constant. If you use punctuation in the num-
ber, it must be a string constant. For example:
PR
I
NT
"$25
0
,0 0 0
"
When BASIC encounters a data constant in a statement, BASIC
must determine how to store it:
If the value
is
enclosed in quotation marks, BASIC stores it
as
a
string.
If the value
is
not enclosed in quotation marks, BASIC
stores it as an integer or a single precision or a double pre-
cision number, according to the requirements described in
the previous section. The section, "Declaring Numeric Con-
stants and Variables," describes ways to override BASIC's
classification of constants.
BASIC evaluates numeric constants in program lines as soon as
you enter the line. It does not wait until you run the program. If
any numbers are out of range for their type, BASIC returns an
error message immediately.
Here are some examples of constants:
PR
I
NT
-NAME*',
"ADDRE
s si'
,
"c
I
TY
91
,
"STATE"
46

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