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 #58 background imageLoading...
Page #58 background image
Chapter
51
Basic
Concepts
BASIC evaluates
5
to the
2.8
power
first,
then multiplies
X*X,
and finally adds the
2
values.
You can change the order of the hierarchy by adding parentheses
to an expression. BASIC always evaluates the expressions inside
the parentheses before evaluating the rest of the expression.
Look
at
this
expression:
X
*
(X
+
5Y2.8
BASIC evaluates the expression
(X
+
5)
first and raises that
value to the
2.8
power before performing the multiplication.
If an expression contains multiple parentheses, BASIC evaluates
the innermost parentheses first.
Functions
A function
is
a
built-in sequence of operations that BASIC per-
forms on data. BASIC always performs functions first when eval-
uating a statement.
Numeric functions, such as ABS,
SQR,
and COS, perform prede-
fined operations on numeric data.
String functions, such
as
MID$, VAL$, and LEN$, perform oper-
ations on string data.
Functions are described in Chapter
10.
56

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