Difference between revisions of "Bit.Xor"
From OpenEUO
					
										
					
					 (Created page with " Bit.Xor(n1,n2,...) Returns the results of a bitwise exclusive or operation on the arguments.  The arguments are numbers, numbers in Lua are doubles, and the double type contains...")  | 
				|||
| Line 24: | Line 24: | ||
| 0  | | 0  | ||
|}  | |}  | ||
| + | |||
| + | [[Bit.And]]  | ||
| + | |||
| + | [[Bit.Not]]  | ||
| + | |||
| + | [[Bit.Or]]  | ||
| + | |||
| + | [[Bit.Shl]]  | ||
| + | |||
| + | [[Bit.Shr]]  | ||
Latest revision as of 09:49, 9 October 2010
Bit.Xor(n1,n2,...)
Returns the results of a bitwise exclusive or operation on the arguments. The arguments are numbers, numbers in Lua are doubles, and 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.
| Bit 1 | Bit 2 | Bit.Xor | 
|---|---|---|
| 0 | 0 | 0 | 
| 0 | 1 | 1 | 
| 1 | 0 | 1 | 
| 1 | 1 | 0 |