Bit.And

From OpenEUO
Revision as of 20:05, 7 October 2010 by 76.184.213.234 (Talk) (Created page with " Bit.And(n1,n2,...) Provides support for the bitwise and operation. n1, n2 and other arguments are numbers. Numbers in Lua are defined as doubles. The double type contains 64 b...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Bit.And(n1,n2,...)

Provides support for the bitwise and operation. n1, n2 and other arguments are numbers. Numbers in Lua are defined as doubles. The double type contains 64 bits: 1 for sign, 11 for the exponent, and 52 for the mantissa. Its range is +/–1.7E308 with at least 15 digits of precision under Windows.

Bit 1 Bit 2 Bit.And
0 0 0
0 1 0
1 0 0
1 1 1