56 posts
Location
Victoria, AUS
Posted 03 October 2012 - 11:25 AM
It's as simple as that,
bit.tonumb is meant to be a valid function of the bit API according to the ComputerCraft wiki, but when trying to call it in game an "attempt to call nil" error is produced.
2217 posts
Location
3232235883
Posted 03 October 2012 - 02:48 PM
are you sure the rest of the bit api is working?, i seem to have bit.tonumb()
521 posts
Location
Stockholm, Sweden
Posted 03 October 2012 - 02:58 PM
You get "attempt to call nil" when you either are spelling wrong, forgot the brackets () or if the function/command dosent even exist.
What version of computercraft are you using?
And if you are playing on a server, the server may got some bugs
1604 posts
Posted 03 October 2012 - 03:00 PM
It was removed in CC 1.42, cause the new api is implemented in java.
2447 posts
Posted 03 October 2012 - 04:21 PM
Yeah - there is no need to convert to/from the bits now - you can just do the operations on the number directly.