Bit (API)

From ComputerCraft Wiki
Revision as of 00:32, 29 January 2012 by Kaleb702 (Talk | contribs)

Jump to: navigation, search

The Bit API is for manipulating bits of variables.

A list of functions:

  • bit.bnot(n)
  • bit.band(m, n)
  • bit.bor(m, n)
  • bit.bxor(m, n)
  • bit.brshift(n, bits)
  • bit.blshift(n, bits)
  • bit.tobits(n)
  • bit.tobits(n)
  • bit.tonumb(bit_tbl)