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

# bitnot

> Returns the bitwise negation of a numeric expression.

Returns the bitwise negation of a numeric expression.

## Syntax

```Haskell theme={null}
BITNOT(x);
```

## Parameters

`x`: This expression must evaluate to any of the following data types: TINYINT, SMALLINT, INT, BIGINT, LARGEINT.

## Return value

The return value has the same type as `x`. If any value is NULL, the result is NULL.

## Examples

```Plain Text theme={null}
mysql> select bitnot(3);
+-----------+
| bitnot(3) |
+-----------+
|        -4 |
+-----------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.