Purpose |
|||||||||||||||||||||||||||||||||||||
Syntax |
AnsiStringVar$ = MKBYT$(byte_expr) AnsiStringVar$ = MKCUR$(currency_expr) AnsiStringVar$ = MKCUX$(extended_currency_expr) AnsiStringVar$ = MKD$(double_precision_expr) AnsiStringVar$ = MKDWD$(double_word_expr) AnsiStringVar$ = MKE$(extended_precision_expr) AnsiStringVar$ = MKI$(integer_expr) AnsiStringVar$ = MKL$(long_integer_expr) AnsiStringVar$ = MKQ$(quad_integer_expr) AnsiStringVar$ = MKS$(single_precision_expr) AnsiStringVar$ = MKWRD$(word_expr) | ||||||||||||||||||||||||||||||||||||
Remarks |
The MKx functions return the binary representations of a number as a set of bytes in an ANSI string. Do not confuse these functions with the STR$ or FORMAT$ functions, which return a printable string. In all but the most extreme cases, the returned string should only be stored as an ANSI string or UDT which consist of single bytes. WIDE (Unicode) strings consist of a series of 2-byte words which will generally yield undefined results. The CVx functions are complementary to the MKx functions. They convert the binary representation in a string to an actual numeric value:
| ||||||||||||||||||||||||||||||||||||
See also |