Difference between revisions of "BITNOT()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 44: | Line 44: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Bitwise Operations]] | ||
+ | [[Category:Bitwise Operations Functions]] |
Revision as of 14:53, 2 June 2009
Class
Bitwise Operations
Purpose
Function to perform bitwise NOT operation
Syntax
BITNOT(<expN>)
See Also
BITAND(), BITCLEAR(), BITLSHIFT(), BITOR(), BITRSHIFT(), BITSET(), BITTEST(), BITXOR()
Description
The BITNOT() function performs a bitwise NOT operation on the specified numeric parameter. If <expN> is not an integer, it will be converted to an integer value before the operation takes place.
BITNOT() switches each bit in turn of <expN1>. Each 1 becomes a 0, and each 0 becomes a 1.
<expN> bit | Result bit |
---|---|
0 | 1 |
1 | 0 |
Example
x = 3 && 00011 ? bitnot(x) -4 && 11100
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer