2021-09-09 20:42:29 -04:00

22 lines
961 B
Markdown

# Complement (Bitwise)
Menu Path : **Operator > Bitwise > Complement**
The **Complement** Operator applies a bitwise logical *NOT* operation to each bit of a number in its binary form. This inverts each bit, meaning bits that are 0 become 1 and bits that are 1 become 0. For example:
- A binary input of 01011101 outputs 10100010.
- A hexadecimal input of 0xF0F0F0F0 outputs 0x0F0F0F0F.
## Operator properties
| **Input** | **Type** | **Description** |
| --------- | -------- | ------------------------------------------------------------ |
| **X** | uint | The value this Operator performs a bitwise logical *NOT* operation on. |
| **Output** | **Type** | **Description** |
| ---------- | -------- | ------------------------------------------------------------ |
| **o** | uint | The result of the bitwise *NOT* operation on the input value. |