---
name: "BIS_fnc_bitwiseNOT"
type: function
status: ok
groups: ["Bitwise"]
arma3_since: "1.66"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_bitwiseNOT
revid: 328587
updated: 2022-07-13T17:02:27Z
---

# BIS_fnc_bitwiseNOT

*Function · Bitwise · Arma 3 v1.66*

## Description

Performs bitwise NOT operation on decimal or hexadecimal unsigned 24 bit integer
(Hexadecimal number representation is simply auto-converted into decimal by the engine)

**Limitations**:

Due to various limitations of the Real Virtuality engine this function is
intended to work with unsigned 24 bit integers only. This means that the
supported range is 2^0...2^24 (1...16777216)

## Syntax

```sqf
num call BIS_fnc_bitwiseNOT
```

**Parameters:**

- `num`: [Number](../topics/Number.md) - decimal or hexadecimal unsigned 24 bit integer

**Returns:** [Number](../topics/Number.md) - decimal number

## Examples

### Example 1

```sqf
873687 call BIS_fnc_bitwiseNOT; // 15903528
[2 + 4 + 8 + 32 + 256 + 1024] call BIS_fnc_bitwiseNOT; // 16775889
```

## See also

[BIS_fnc_bitwiseAND](../functions/BIS_fnc_bitwiseAND.md) · [BIS_fnc_bitwiseXOR](../functions/BIS_fnc_bitwiseXOR.md) · [BIS_fnc_bitwiseOR](../functions/BIS_fnc_bitwiseOR.md)

<sub>Source: [BI Community Wiki — BIS fnc bitwiseNOT](https://community.bistudio.com/wiki/BIS_fnc_bitwiseNOT) (revision 328587).</sub>
