Function Bin2w() Foundation
Converts a 16 bit unsigned integer to a numeric value.
Bin2w( <cUnsignedInt> ) --> nUnsignedInt
The conversion function Bin2w() returns an integer numeric value in the range of 0 to 65535.
Bin2w() converts binary numbers within character strings to their numeric values. The counterpart of Bin2w() is the function W2bin() which converts a positive integer to a 2 byte character string.
The value range of Bin2w() or W2bin() is that for a 16 bit unsigned integer. Similar conversion functions are Bin2i(), Bin2l() and Bin2u().
Bin2w() 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 read files whose data is in binary format.
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.