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 #53 background imageLoading...
Page #53 background image
Chapter
51
Basic
Concepts
Manipulating Data
BASIC uses expressions
as
a
way
to
manipulate data. An expres-
sion
is
2
or
more pieces of data connected by operators.
An
operator
is
a symbol
or
a
word that signifies some action
to
be performed on the specified data. Each data item is called an
operand.
An expression might look like this:
operand1 operator
operand2
6
+
2
A few operators allow only one operand, for example
operator operand
-
5
Expressions must be used in a BASIC statement, such as:
A=6+2
PRINT
-5
BASIC has four types of operators:
Arithmetic
String
Relational
Logical
used for numeric data only.
used
for
string data only.
used for both numeric and string data.
used for numeric data only.
Arithmetic Operators
Arithmetic operators perform operations on numeric data. Both
operands must be numeric. When BASIC evaluates the expres-
sion, all operands are converted
to
the same degree
of
precision,
that of the most precise operand. The result
of
the arithmetic
op-
eration is also returned
to
this degree of precision.
The arithmetic operators are listed below. They are in order
of
precedence, that is, the order in which BASIC executes them if
1
or
more operators are in the same statement.
Exponentiation. Calculates the power
of
a
number. For example, 2^3 is
8
(2
to
the power
of
3
is the same as 2*2*2).
Negation
or
Unary Minus. Makes a number
negative.
For
example, -10 is “negative ten.”
A
51

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