MKD$,
MKI$,
MKS$
Function
MKI$(integer expression)
MKS$(single-prec;sion expression)
MKD$(double-precision expression)
Convert 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 three functions are the inverse of CVD, CVI, and CVS. The
byte values which make
up
the number are not changed; only one
byte, the internal data-type specifier,
is
changed, so that numeric data
can be placed
in
a string variable.
MKD$ returns
an
eight-byte string; MKI$ returns a two-byte string;
and MKS$ returns a four-byte string.
Example
LSET
AVG$
=
MKS$(0.123)
Sample Program
1350
OPEN
110
11
,
1 ,
"TEST/DAT"
,
1L1
1360
FIELD
1 ,
2
AS
11$
,
LI
AS
12$
,
8
AS
13$
1370
LSET
11$
=
MKI$(3000)
1380
LSET
12$
MKD$(3000.1)
1380
LSET
13$
MKD$(3000.00001)
1L100
PUT
1 ,
1
1L110 CLOSE 1
For a program that retrieves the data from TEST/OAT, see
CVD/CVI/CVS.
2-130