Converts an integer to the corresponding two-byte string.
$ZWCHAR returns a two-byte (wide) character string corresponding to the binary representation of n. The bytes of the character string are presented in little-endian byte order, with the least significant byte first. It is the functional equivalent of:
If n is out of range or a negative number, $ZWCHAR returns the null string. If n is zero or a non-numeric string $ZWCHAR returns 0.
$ZWCHAR and $CHAR
$ZWCHAR is similar to $CHAR except that it operates on two byte (16-bit) words instead of single 8-bit bytes. For four byte (32-bit) words, use $ZLCHAR; For eight byte (64-bit) words, use $ZQCHAR.
$ZWCHAR and $ZWASCII
$ZWASCII is the logical inverse of the $ZWCHAR function. For example: