MKBYT$, MKCUR$, MKCUX$, MKD$, MKDWD$, MKE$, MKI$, MKL$, MKQ$, MKS$ and MKWRD$ functions

Purpose

Convert numeric  data into strings, ensuring that storage for a given numeric data type is consistent, regardless of its absolute value.

Syntax

DataTypeString$ = MKBYT$(byte_expr)

DataTypeString$ = MKCUR$(currency_expr)

DataTypeString$ = MKCUX$(extended_currency_expr)

DataTypeString$ = MKD$(double_precision_expr)

DataTypeString$ = MKDWD$(double_word_expr)

DataTypeString$ = MKE$(extended_precision_expr)

DataTypeString$ = MKI$(integer_expr)

DataTypeString$ = MKL$(long_integer_expr)

DataTypeString$ = MKQ$(quad_integer_expr)

DataTypeString$ = MKS$(single_precision_expr)

DataTypeString$ = MKWRD$(word_expr)

Remarks

The MKx functions return the binary representations of a number as a string value.  Do not confuse these functions with the STR$ and FORMAT$ functions (which return a printable ASCII representation of a numeric expression as a string (e.g., "-42.75").

The CVx functions are complementary to the MKx functions.  They convert the binary representation in a string to an actual numeric value:

Function

Converts to

From

MKBYT$

1-byte string

Byte

MKCUR$

8-byte string

Currency

MKCUX$

8-byte string

Extended-currency

MKD$

8-byte string

Double-precision

MKDWD$

4-byte string

Double-word

MKE$

10-byte string

Extended-precision

MKI$

2-byte string

Integer

MKL$

4-byte string

Long-integer

MKQ$

8-byte string

Quad-integer

MKS$

4-byte string

Single-precision

MKWRD$

2-byte string

Word

See also

CVI and associated functions