Skip to content
Reference > Methods

bitShiftRightUnsigned(n,shiftAmount)

Definition

Number bitShiftRightUnsigned(Number n, Number shiftAmount)

Description

Returns the bitwise unsigned right shift of the first number.

Parameter Definition

Name Type Description
n Number number to shift
shiftAmount Number bits to shift by

Examples

1
2
3
Integer r1 = bitShiftRightUnsigned(5,8); // r1 == 0
Integer r2 = bitShiftRightUnsigned(13,22); // r2 == 0
Object r3 = bitShiftRightUnsigned(null,17); // r3 == null