PE8Nt‖Bit Operation Functions

Contents

# vWoFh‖Bit Operation Functions

To access this command...

Insert - Function - Category Mathematical

a432s‖

## PwfzM‖BITOR

Xq7kt‖Returns a bitwise logical "or" of the parameters.

ctCQZ‖This function is available since LibreOffice 3.5.

#### GSbiK‖Syntax

zsPQd‖BITOR(number1; number2)

eAa8N‖Number1 and number2 are positive integers less than 2 ^ 48 (281 474 976 710 656).

FXiFR‖=BITOR(6;10) returns 14 (0110 | 1010 = 1110).

vYQgj‖

## Q5CWK‖BITXOR

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

ctCQZ‖This function is available since LibreOffice 3.5.

#### GSbiK‖Syntax

Gcfrv‖BITXOR(number1; number2)

nFNuB‖Number1 and number2 are positive integers less than 2 ^ 48 (281 474 976 710 656).

#### MiUAf‖Example

EkMSL‖=BITXOR(6;10) returns 12 (0110 ^ 1010 = 1100)

H42WE‖

## QQAka‖BITRSHIFT

RRfun‖Shifts a number right by n bits.

ctCQZ‖This function is available since LibreOffice 3.5.

#### GSbiK‖Syntax

3VyLt‖BITRSHIFT(number; shift)

KMGD8‖Number is a positive integer less than 2 ^ 48 (281 474 976 710 656).

A2anz‖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).

#### MiUAf‖Example

qYBC4‖=BITRSHIFT(6;1) returns 3 (0110 >> 1 = 0011).

gcq6T‖

## Uue3a‖BITLSHIFT

msYD8‖Shifts a number left by n bits.

ctCQZ‖This function is available since LibreOffice 3.5.

#### GSbiK‖Syntax

V9Edi‖BITLSHIFT(number; shift)

F2aRk‖Number is a positive integer less than 2 ^ 48 (281 474 976 710 656).

F6gei‖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).

#### MiUAf‖Example

HXLGB‖=BITLSHIFT(6;1) returns 12 (0110 << 1 = 1100).

72BSr‖

## ZhjDV‖BITAND

sBFc6‖Returns a bitwise logical "and" of the parameters.

ctCQZ‖This function is available since LibreOffice 3.5.

#### GSbiK‖Syntax

88GjT‖BITAND(number1; number2)

Ed8iU‖Number1 and number2 are positive integers less than 2 ^ 48 (281 474 976 710 656).

#### MiUAf‖Example

YiAov‖=BITAND(6;10) returns 2 (0110 & 1010 = 0010).

Related Topics

Functions by Category

Please support us!