Bit Operation Functions

P'aportar a esta orde...

Inxertar - Función - Categoría Matemáticu


BITAND

Returns a bitwise logical "and" of the parameters.

tip

Esta función ta disponible dende la versión 3.5 de LibreOffice.


Sintaxis

BITAND(númberu1; númberu2)

Númberu1 y númberu2 son enteros positivos menores que 2 ^ 48 (281 474 976 710 656).

Exemplu

=BITAND(6;10) devuelve 2 (0110 & 1010 = 0010).

BITLSHIFT

Mueve un númberu a la izquierda n bits.

tip

Esta función ta disponible dende la versión 3.5 de LibreOffice.


Sintaxis

BITLSHIFT(númberu; mayús)

Númberu ye un enteru positivu menor que 2 ^ 48 (281 474 976 710 656).

Shift is the number of positions the bits will be moved to the left. If shift is negative, it is synonymous with BITRSHIFT (number; -shift).

Exemplu

=DESPESQBIT(6;1) devuelve 12 (0110 << 1 = 1100).

BITOR

Returns a bitwise logical "or" of the parameters.

tip

Esta función ta disponible dende la versión 3.5 de LibreOffice.


Sintaxis

BITOR(númberu1; númberu2)

Númberu1 y númberu2 son enteros positivos menores que 2 ^ 48 (281 474 976 710 656).

=IBIT(6;10) devuelve 14 (0110 | 1010 = 1110).

BITRSHIFT

Mueve un númberu a la drecha n bits.

tip

Esta función ta disponible dende la versión 3.5 de LibreOffice.


Sintaxis

BITRSHIFT(númberu; mayús)

Númberu ye un enteru positivu menor que 2 ^ 48 (281 474 976 710 656).

Shift is the number of positions the bits will be moved to the right. If shift is negative, it is synonymous with BITLSHIFT (number; -shift).

Exemplu

=DESPDREBIT(6;1) devuelve 3 (0110 >> 1 = 0011).

BITXOR

Returns a bitwise logical "exclusive or" of the parameters.

tip

Esta función ta disponible dende la versión 3.5 de LibreOffice.


Sintaxis

BITXOR(númberu1; númberu2)

Númberu1 y númberu2 son enteros positivos menores que 2 ^ 48 (281 474 976 710 656).

Exemplu

=OEXBIT(6;10) devuelve 12 (0110 ^ 1010 = 1100)

Please support us!