Function W2bin() Foundation
Converts an unsigned numeric value to a 16 bit integer.
W2bin( <nInteger> ) --> cBinary
The return value of W2bin() is a character string with two characters which contain the numeric value as a 16 bit integer.
W2bin() converts numeric values in the range of 0 to 65535 to their binary representation. The function returns a character string with two characters whose first character represents the lower value byte. W2bin() ignores decimal places and only converts integers. The counterpart of W2bin() is Bin2w().
W2bin()is frequently used in connection with the low level file functions. This is sometimes done to allow definition of special or unique file formats, or to provide data compression when integer numeric values are being stored.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.