Maptitude GISDK Help |
Computes the bitwise OR of two integers.
int = BitwiseOr(integer int1, integer int2)
Argument |
Contents |
int1 |
First integer |
Int2 |
Second integer |
An integer that is the bitwise OR of the two integer arguments.
If bit is set to 1 in either integer argument it will be set to 1 in the resulting integer; otherwise it will be set to 0.
int = BitwiseOr(5, 3) // int = 7: in binary, 101 AND 011 = 111
int = BitwiseOr(8, 7) // int = 15: in binary, 1000 AND 0111 = 1111
int = BitwiseOr(8, -1) // int = -1: all bits are set to 1 in -1
Function |
Summary |
Computes the bitwise AND of two integers |
|
Computes the bitwise NOT of an integer |
|
Computes the bitwise exclusive OR of an integer |
|
Does a left arithmetic shift of the bits in an integer |
|
Does a right arithmetic shift of the bits in an integer |
©2025 Caliper Corporation | www.caliper.com |