Skip to content

MKI, MKS, MKD$

Syntax

MKI$(integer_expression)
MKS$(single_precision_expression)
MKD$(double_precision_expression)

Versions: Disk

Description

Convert numeric values to string values. Any numeric value that is placed in a random file buffer with an LSET or RSET statement must be converted to a string. MKI$ converts an integer to a 2-byte string. MKS$ converts a single precision number to a 4-byte string. MKD$ converts a double precision number to an 8-byte string.

Example

90 AMT = (K + T)
100 FIELD #1, 8 AS D$, 20 AS N$
110 LSET D$ = MKS$(AMT)
120 LSET N$ = A$
130 PUT #1

See Also