ビット演算関数

このコマンドの見つけ方

挿入 → 関数 → カテゴリー 数学


BITAND

パラメーターのビット論理積を返す。

tip

この関数はLibreOffice 3.5以降で利用できます。


Syntax

BITAND(number1; number2)

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

Example

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

BITLSHIFT

Shifts a number left by n bits.

tip

この関数はLibreOffice 3.5以降で利用できます。


Syntax

BITLSHIFT(number; shift)

Number is a positive integer less than 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).

Example

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

BITOR

パラメーターのビット論理積を返す。

tip

この関数はLibreOffice 3.5以降で利用できます。


Syntax

BITAND(number1; number2)

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

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

BITRSHIFT

Shifts a number right by n bits.

tip

この関数はLibreOffice 3.5以降で利用できます。


Syntax

BITRSHIFT(number; shift)

Number is a positive integer less than 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).

Example

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

BITXOR

パラメーターのビット論理積を返す。

tip

この関数はLibreOffice 3.5以降で利用できます。


Syntax

BITAND(number1; number2)

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

Example

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

ご支援をお願いします!