Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | bitwise_not(int1, int2) | Package | bitwise | Alias | | Pkg Usage | b_not(int1, int2)) | |
Description
Excerpt |
---|
|
Takes one number and inverts all bits of it. |
Takes one number and inverts all bits of it.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
int1 | Integer | Yes | int2 | Integer | Yes | Number to be inverted. | |
Return Type
Integer
the The result of the bitwise operation (complement).
Example
Code Block |
---|
|
use "bitwise";
int result = b_not(int1);
//------------or-----
//no package needed
int result = bitwise_not(int1); |
...