Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

bitwise_or(int1, int2)

Package

bitwise

Alias

Pkg Usage

or(int1, int2)

Description

Excerpt
hiddentrue
Takes two numbers as operands and does OR on every bit of two numbers.

Takes two numbers as operands and does OR on every bit of two numbers. The result of OR is 1 if any of the two bits is 1.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

int1

Integer

Yes

First operand.

int2

Integer

Yes

Second operand.

Return Type

Integer

the The result of the bitwise operation.

Example

Code Block
languagejs
use "bitwise";
int result = b_or(int1, int2);
//------------or-----
//no package needed
int result = bitwise_or(int1, int2);

...