> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/mathematics/bitwise-not.md).

# Bitwise NOT

## Syntax

```swift
~x
```

## Explanation

Flips each bit in `x`. Arithmetically equivilent to `-x - 1`

## Truth Table

| A | \~A |
| - | --- |
| 0 | 1   |
| 1 | 0   |
