Difference between revisions of "Bit.And"
From OpenEUO
					
										
					
					 (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...")  | 
			
(No difference) 
 | 
Revision as of 19:05, 7 October 2010
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 |