Maptitude GISDK Help |
Does a right arithmetic shift of the bits in an integer.
int = ShiftRight(integer int1, integer shift)
Argument |
Contents |
int1 |
An integer |
shift |
Number of bits to shift right, from 1 to 32; a negative value will shift left |
An integer with an arithmetic shift of the bits the specified number of places to the right.
Bits are dropped from the right end, and the sign bit is moved into new bits on the left.
The sign bit cannot change.
int = ShiftRight(15, 1) // int = 7: in binary, 1111 becomes 111
int = ShiftRight(-1, 1) // int = -1: any shift will result in -1
Function |
Summary |
Computes the bitwise AND of two integers |
|
Computes the bitwise NOT of an integer |
|
Computes the bitwise OR of two integers |
|
Computes the bitwise exclusive OR of an integer |
|
Does a left arithmetic shift of the bits in an integer |
©2025 Caliper Corporation | www.caliper.com |