Difference between revisions of "Bit.tonumb"
From ComputerCraft Wiki
(Now perhaps jesusthekiller won't submit false bugreports.) |
m (Changed nonexistent type int to type number.) |
||
Line 10: | Line 10: | ||
|args={{Type|table}} bit_tbl | |args={{Type|table}} bit_tbl | ||
|api=bit | |api=bit | ||
− | |returns={{Type| | + | |returns={{Type|number}} the number resulting from the conversion of <var>bit_tbl</var> from binary |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Converts an array (numerically-indexed table) containing binary bit values to a number (the inverse of [[bit.tobits]]) | |desc=Converts an array (numerically-indexed table) containing binary bit values to a number (the inverse of [[bit.tobits]]) |
Latest revision as of 01:53, 12 July 2013
This function has been deprecated. This function has been removed from ComputerCraft in version 1.42.
|
Function bit.tonumb | |
Converts an array (numerically-indexed table) containing binary bit values to a number (the inverse of bit.tobits) | |
Syntax | bit.tonumb(table bit_tbl) |
Returns | number the number resulting from the conversion of bit_tbl from binary |
Part of | ComputerCraft |
API | bit |
Examples
Example | |
Convert the binary representation 10010 into its corresponding value, 18 | |
Code |
t = {} |
Output | 18 |