bit_or
Computes the bit-wise OR of its arguments.
bit_or(lhs:number, rhs:number) -> number
Description
Section titled “Description”The bit_or
function computes the bit-wise OR of lhs
and rhs
. The operation
is performed on each corresponding bit position of the two numbers.
lhs: number
Section titled “lhs: number”The left-hand side operand.
rhs: number
Section titled “rhs: number”The right-hand side operand.
Examples
Section titled “Examples”Perform bit-wise OR on integers
Section titled “Perform bit-wise OR on integers”from {x: bit_or(5, 3)}
{x: 7}