Difference between revisions of "L2BIN()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Helen.george (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to convert numeric to binary encoded string | Function to convert numeric to binary encoded string | ||
− | |||
==Syntax== | ==Syntax== | ||
L2BIN(<expN>) | L2BIN(<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[BIN2I()]], [[BIN2L()]], [[BIN2W()]], [[BINCLOSE()]], [[BINCREATE()]], [[BINOPEN()]], [[BINREAD()]], [[BINSEEK()]], [[BINWRITE() | + | [[BIN2I()]], [[BIN2L()]], [[BIN2W()]], [[BINCLOSE()]], [[BINCREATE()]], [[BINOPEN()]], [[BINREAD()]], [[BINSEEK()]], [[BINWRITE()]], [[I2BIN()]] |
− | + | ||
==Description== | ==Description== | ||
− | The L2BIN() function converts a numeric value into a binary encoded character string formatted as a signed 32-bit integer. The <expN> is any numeric value. Any decimal places are ignored | + | The L2BIN() function converts a numeric value into a binary encoded character string formatted as a signed 32-bit integer. The <expN> is any numeric value. Any decimal places are ignored. With the exception of the BIN2W() function, all binary conversion functions may be used in conjunction with the binary file functions. |
− | + | ||
==Example== | ==Example== | ||
Line 21: | Line 17: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:Formatting Functions]] |
− | [[Category: | + | [[Category:Lianja VFP Extensions]] |
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 08:19, 4 February 2013
Contents
Purpose
Function to convert numeric to binary encoded string
Syntax
L2BIN(<expN>)
See Also
BIN2I(), BIN2L(), BIN2W(), BINCLOSE(), BINCREATE(), BINOPEN(), BINREAD(), BINSEEK(), BINWRITE(), I2BIN()
Description
The L2BIN() function converts a numeric value into a binary encoded character string formatted as a signed 32-bit integer. The <expN> is any numeric value. Any decimal places are ignored. With the exception of the BIN2W() function, all binary conversion functions may be used in conjunction with the binary file functions.
Example
? bin2l(l2bin(98765)) 98765