Function Bin2i() Foundation
Converts a signed 16 bit integer to a numeric value.
Bin2i( <cSignedInt> ) --> nSignedInt
The conversion function Bin2i() returns an integer numeric value in the range of -32768 to +32767.
Bin2i() converts binary numbers in a character string to their numeric value. The counterpart of Bin2i() is the function I2bin() which converts a signed integer to a 2 byte character string.
The value range of Bin2i() or I2bin() is that of a 16 bit signed integer. Similar conversion functions are Bin2w(), Bin2l() and Bin2u().
Bin2i() and I2bin() are 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.