Download Print this page

Radio Shack TRS-80 Owner's Manual page 158

Mini-disk operation disk operating system disk basic programming language
Hide thumbs Also See for TRS-80:

Advertisement

>-80
MODEL
III
DIS
K
SYSTEM
^^^[ii^HBiiHBHHi
sm$
defines
n
miit^Mnmr
sfrma;
sAf
f
is
typiGaify
the
name
at
a
Sniffer
lisle sorptsiREftg
e
rsiiSTief-Sc
string,
if
Lik{exp$y-£i
s
m
mmM.
rmam
call srrar occurs:
if
un(axp$}
>A,
en>¥ the
first
four
sharasters are
These
functions
let
you
restore data
to
numeric form
after
it
is
read
from
disk.
Typically the data
has
been
read
by
a
get
statement,
and
is
stored
in
a
random-
access lie
buffer.
The
functions
cvd,
cvi,
and cvs
are inverses
of
mkd$,
mki$,
and mks$,
respectively.
For example, suppose
the
name
grosspays
references
an
eight-byte
field in
a
random-access
file
buffer,
and
after
GETting
a record,
grosspay$
contains a
mkd$
representation
of
the
number
13123.38.
Then
the
statement:
PRINT CVD (GROSSPAY*) -TAXES
prints
the
result
of
the difference,
13123.38
-taxes. Whereas
the statement:
PRINT
GROSSPAY$-TAXES
will
produce
a
type
mismatch
error,
since
string
values
cannot be used
in
arithmetic expressions.
Using
the
same
example,
the
statement
A«=CUD( GROSSPAY*)
assigns the
numeric
value
13123.38
to
the
double-precision variable
a#.
EOF
Eni-Of-FIe
Detector
illifiiiil^
/MWAp
specifies a
fife biiffer,
nmexp=*J.
..M,
140

Advertisement

loading

This manual is also suitable for:

Model iii