Bit.And

From OpenEUO
Revision as of 20:06, 7 October 2010 by 76.184.213.234 (Talk)

Jump to: navigation, search
Bit.And(n1,n2,...)

Returns the result for the bitwise and operation of all its arguments. 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