Difference between revisions of "I2BIN()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to convert numeric to binary encoded character string | Function to convert numeric to binary encoded character string | ||
− | |||
==Syntax== | ==Syntax== | ||
I2BIN(<expN>) | I2BIN(<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[BIN2I()]], [[BIN2L()]], [[BIN2W()]], [[BINCLOSE()]], [[BINCREATE()]], [[BINOPEN()]], [[BINREAD()]], [[BINSEEK()]], [[BINWRITE() | + | [[BIN2I()]], [[BIN2L()]], [[BIN2W()]], [[BINCLOSE()]], [[BINCREATE()]], [[BINOPEN()]], [[BINREAD()]], [[BINSEEK()]], [[BINWRITE()]], [[L2BIN()]] |
− | + | ||
==Description== | ==Description== | ||
The I2BIN() function converts a numeric value into a binary encoded character string formatted as an unsigned 16-bit integer. The <expN> is any numeric value. Any decimal places are ignored. | The I2BIN() function converts a numeric value into a binary encoded character string formatted as an unsigned 16-bit integer. The <expN> is any numeric value. Any decimal places are ignored. | ||
− | + | With the exception of the BIN2W(), all binary conversion functions may be used in conjunction with the binary file access functions. | |
− | + | ||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
</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 11:04, 9 February 2012
Contents
Purpose
Function to convert numeric to binary encoded character string
Syntax
I2BIN(<expN>)
See Also
BIN2I(), BIN2L(), BIN2W(), BINCLOSE(), BINCREATE(), BINOPEN(), BINREAD(), BINSEEK(), BINWRITE(), L2BIN()
Description
The I2BIN() function converts a numeric value into a binary encoded character string formatted as an unsigned 16-bit integer. The <expN> is any numeric value. Any decimal places are ignored.
With the exception of the BIN2W(), all binary conversion functions may be used in conjunction with the binary file access functions.
Example
? bin2i(i2bin(987)) 987