Skip to content
Reference > Methods

bitShiftLeft(n,shiftAmount)

Definition

Number bitShiftLeft(Number n, Number shiftAmount)

Description

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