Difference between revisions of "Bit.And"

From OpenEUO
Jump to: navigation, search
(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...")
 
Line 1: Line 1:
 
  Bit.And(n1,n2,...)
 
  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.
+
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.
  
 
{| class="andtable"
 
{| class="andtable"

Revision as of 20:06, 7 October 2010

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