EasyManuals Logo

Texas Instruments TI-99/4A User Reference Guide

Texas Instruments TI-99/4A
204 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 #82 background imageLoading...
Page #82 background image
READ
When
data
is
read from a DATA statement, the type
of
data
in the
data-list and the type of variables
to
which the values
are
assigned
must correspond.
If
you try to asSIgn a string value to a numeric
variable. the message "DATA
ERROR
IN
xx" (xx
is
the line
number of the
READ
statement where the error occurs) appears on
the screen
and
the program stops running. Remember
that
a
number is a valid string so numbers may be assigned to either
string or numeric variables.
When a
READ
statement is performed, if there
are
more names in
the variable·list than values remaining in DATA statements, a
"DATA
ERROR"
message
is
displayed on the screen and the
program stops
running.
If
a numeric constant
is
read which causes
an underflow, its value is replaced by zero -
no
warning is given
- and the program continues running normally.
If
a numeric
constant
is
rearl which causes
an
overflow, its value
is
replaced
by
the appropriate computer limit, the message "WARNING:
NUMBER
TOO
BIG"
is
displayed on the screen.
and
the
program
continuf's
For
information on underflow, overflow, and
numeric limits, see "Numeric Constants."
II·62
Examples:
>N
EW
>100
READ
A,S
>110
DATA
12,HElLD
>120
PRINT
A;B
>130
END
>RUN
*
DATA
ERROR
IN
100
>NEW
>100
READ
A,B
>110
DATA
12E-135
>120
DATA
36E142
>130
PRINT
:A:B
>140
READ
C
>150
END
>RUN
*
WARNING:
NU~8ER
TOO
BIG
IN
100
o
9.99999E+**
*
DATA
ERROR
IN
140
User·s
Reference
Guide

Other manuals for Texas Instruments TI-99/4A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-99/4A and is the answer not in the manual?

Texas Instruments TI-99/4A Specifications

General IconGeneral
BrandTexas Instruments
ModelTI-99/4A
CategoryDesktop
LanguageEnglish

Related product manuals