bit.tonumb
From ComputerCraft Wiki
| This function has been deprecated. This function has been removed from ComputerCraft in version 1.42.
|
| 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
| Convert the binary representation 10010 into its corresponding value, 18 | |
| Code |
t = {}
|
| Output | 18 |