Skip to content
Reference > Methods

bitShiftRight(n,shiftAmount)

Definition

Number bitShiftRight(Number n, Number shiftAmount)

Description

Returns the bitwise 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 = bitShiftRight(5,8); // r1 == 0
Integer r2 = bitShiftRight(13,22); // r2 == 0
Object r3 = bitShiftRight(null,17); // r3 == null