Difference between revisions of "Bit.Or"
From OpenEUO
(Created page with " Bit.Or(n1,n2,...) Returns the result of a bitwise or operation on the arguments. Arguments are numbers, numbers under Lua are doubles, and the double type contains 64 bits: 1 f...") |
|||
Line 25: | Line 25: | ||
| 1 | | 1 | ||
|} | |} | ||
+ | |||
+ | |||
+ | [[Bit.And]] | ||
+ | |||
+ | [[Bit.Not]] | ||
+ | |||
+ | [[Bit.Shl]] | ||
+ | |||
+ | [[Bit.Shr]] | ||
+ | |||
+ | [[Bit.Xor]] |
Latest revision as of 10:48, 9 October 2010
Bit.Or(n1,n2,...)
Returns the result of a bitwise or operation on the arguments. Arguments are numbers, numbers under 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.Or |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |