\PhpOffice\PhpSpreadsheet\Calculation\EngineeringBitWise

Summary

Methods
Properties
Constants
BITAND()
BITOR()
BITXOR()
BITLSHIFT()
BITRSHIFT()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
validateBitwiseArgument()
No private properties found
N/A

Methods

BITAND()

BITAND(int  $number1, int  $number2) : int|string

BITAND.

Returns the bitwise AND of two integer values.

Excel Function: BITAND(number1, number2)

Parameters

int $number1
int $number2

Returns

int|string —

BITOR()

BITOR(int  $number1, int  $number2) : int|string

BITOR.

Returns the bitwise OR of two integer values.

Excel Function: BITOR(number1, number2)

Parameters

int $number1
int $number2

Returns

int|string —

BITXOR()

BITXOR(int  $number1, int  $number2) : int|string

BITXOR.

Returns the bitwise XOR of two integer values.

Excel Function: BITXOR(number1, number2)

Parameters

int $number1
int $number2

Returns

int|string —

BITLSHIFT()

BITLSHIFT(int  $number, int  $shiftAmount) : int|string

BITLSHIFT.

Returns the number value shifted left by shift_amount bits.

Excel Function: BITLSHIFT(number, shift_amount)

Parameters

int $number
int $shiftAmount

Returns

int|string —

BITRSHIFT()

BITRSHIFT(int  $number, int  $shiftAmount) : int|string

BITRSHIFT.

Returns the number value shifted right by shift_amount bits.

Excel Function: BITRSHIFT(number, shift_amount)

Parameters

int $number
int $shiftAmount

Returns

int|string —

validateBitwiseArgument()

validateBitwiseArgument(mixed  $value) : int

Validate arguments passed to the bitwise functions.

Parameters

mixed $value

Returns

int —