Difference between revisions of "Bit.Not"
From OpenEUO
(Created page with " Bit.Not(n) Returns the result of a bitwise not operation on the sole argument. n is a number, numbers are doubles in Lua, and the double type contains 64 bits: 1 for sign, 11 f...") |
|||
Line 13: | Line 13: | ||
| 0 | | 0 | ||
|} | |} | ||
+ | |||
+ | |||
+ | [[Bit.And]] | ||
+ | |||
+ | [[Bit.Or]] | ||
+ | |||
+ | [[Bit.Shl]] | ||
+ | |||
+ | [[Bit.Shr]] | ||
+ | |||
+ | [[Bit.Xor]] |
Latest revision as of 09:48, 9 October 2010
Bit.Not(n)
Returns the result of a bitwise not operation on the sole argument. n is a number, numbers are doubles in Lua, 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.Not |
---|---|
0 | 1 |
1 | 0 |