Name
bit_not — Returns bitwise NOT of a 32-bit integer.
Synopsis
bit_not
( |
in n1 integer ) ; |
Description
The function returns bitwise NOT of a given integer.
On 64-bit platforms the argument is intentionally truncated to 32 bits to maintain compatibility.
Return Types
Integer.
Examples
Example24.25.Using bitwise-NOT
select bit_not (18); -19 select bit_not (-18); -17