Excl Function

Clears a bit in a natural number


Function

The function Excl clears a specific bit in a natural number.

In the first parameter is the argument that should be changed. It can be a natural number, a list or a table. For data fields, the number of each element is calculated and the results are returned in a data field of the same size.

The second argument specifies the number of the bit to be cleared.


Syntax

Excl (arg, bit)

Excl (arg, bit)

Excl (arg, bit)

Example

Excl (15, 4) = 7


If an argument is a list or a table, the bit is deleted in each element of the list or table.

Excl([10,12,13],3)= 10 8 9