> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Uint.bitwiseNot

> Bitwise NOT operation on Uint256 value

<Card title="Try it Live" icon="play" href="https://playground.tevm.sh?example=primitives/uint.ts">
  Run Uint examples in the interactive playground
</Card>

## `Uint.bitwiseNot(value: BrandedUint256): BrandedUint256`

Bitwise NOT (complement) operation - flips all bits.

**Parameters:**

* `value: BrandedUint256` - Value to invert

**Returns:** `BrandedUint256` - Bitwise NOT result

**Example:**

```typescript theme={null}
import { Uint } from 'tevm'

const a = Uint(0xfn)
Uint.bitwiseNot(a)  // 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0

Uint.bitwiseNot(Uint.ZERO)  // MAX
Uint.bitwiseNot(Uint.MAX)   // ZERO
```

**Defined in:** [primitives/Uint/bitwiseNot.ts](https://github.com/evmts/voltaire/blob/main/src/primitives/Uint/bitwiseNot.ts)

## See Also

* [bitwiseAnd](/primitives/uint256/bitwise-and) - Bitwise AND
* [Bitwise operations](/primitives/uint256/bitwise) - Full bitwise reference
