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 #99 background imageLoading...
Page #99 background image
ChaDter
10
BASIC
KEYWORDS
ABS
Function
ABS
(number)
Returns the absolute value
of
number.
The absolute value
of
a number is the value without regard
to
its sign. Absolute values are always positive
or
zero.
Example
PRINT
ABS(-66)
prints the absolute value
of
-66
which is
66.
X
=
ABS(Y)
computes the absolute value
of
Y
and assigns it
to
X.
Sample Program
100 INPUT "WHAT'S THE TEMPERATURE OUTSIDE7
(DEGREES F)";TEMP
110
IF
TEMP
<
0 THEN PRINT "THAT'S" ABS(TEMP1
"BELOW ZERO!
BRR!":
END
120
IF
TEMP
=
0 THEN PRINT "ZERO DEGREES! MITE
COLD!": END
130 PRINT TEMP "DEGREES ABOVE ZERO!
BALMY!":
END
97

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