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 #223 background imageLoading...
Page #223 background image
Chapter
10
I
BASIC Ke.ywords
MKD$, MKI$, MKS$
Function
MKD$(double precision expression)
MKI$( integer expression)
MKS$(single precision expression)
Converts numeric values
to
string values.
Any numeric value that is placed in a direct file buffer with an
LSET
or
RSET statement must be converted to
a
string.
These
3
functions are the inverse
of
CVD, CVI, and CVS. The
byte values that make up the number are not changed; only
1
byte, the internal data-type specifier, is changed
so
that numeric
data can be placed in
a
string variable.
MKD$ returns an 8-byte string; MKI$ returns a 2-byte string;
and MKS$ returns a 4-byte string.
Example
LSET
AVGS.
=
MKSS(0.123)
Sample Program
1350
OPEN
"R",
1
I
"te~t.dat",
14
1360
FIELD
1,
2
AS
119, 4
AS
I2$,
8
AS
13s
1370
LSET
IIS
=
MKIS(3000)
1380
LSET
12s
=
MKSSC3000.1)
1390
LSET
13s
=
MKDSC3000.00001)
1400
PUT
1, 1
1410
CLOSE
1
For a program that retrieves the data from
test.dat,
see CVDi
CVI/CVS.
221

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