Difference between revisions of "BIN2W()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to convert a binary encoded string to a numeric | Function to convert a binary encoded string to a numeric | ||
− | |||
==Syntax== | ==Syntax== | ||
BIN2W(<expC>) | BIN2W(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[BIN2I()]], [[BIN2L()]], [[BINCLOSE()]], [[BINCREATE()]], [[BINOPEN()]], [[BINREAD()]], [[BINWRITE() | + | [[BIN2I()]], [[BIN2L()]], [[BINCLOSE()]], [[BINCREATE()]], [[BINOPEN()]], [[BINREAD()]], [[BINWRITE()]], [[I2BIN()]], [[L2BIN()]] |
− | + | ||
==Description== | ==Description== | ||
The BIN2W() function converts a binary encoded string, formatted as a 16-bit long signed integer, into a numeric value. The <expC> is a string, two bytes in length, containing a binary numeric value | The BIN2W() function converts a binary encoded string, formatted as a 16-bit long signed integer, into a numeric value. The <expC> is a string, two bytes in length, containing a binary numeric value | ||
− | |||
==Example== | ==Example== | ||
Line 20: | Line 16: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Expressions and Type Conversion]] | [[Category:Expressions and Type Conversion]] | ||
[[Category:Expressions and Type Conversion Functions]] | [[Category:Expressions and Type Conversion Functions]] |
Revision as of 10:57, 9 February 2012
Contents
Purpose
Function to convert a binary encoded string to a numeric
Syntax
BIN2W(<expC>)
See Also
BIN2I(), BIN2L(), BINCLOSE(), BINCREATE(), BINOPEN(), BINREAD(), BINWRITE(), I2BIN(), L2BIN()
Description
The BIN2W() function converts a binary encoded string, formatted as a 16-bit long signed integer, into a numeric value. The <expC> is a string, two bytes in length, containing a binary numeric value
Example
nVar = bin2w(binVar)