LeftShift - Math
Jump to navigation
Jump to search
SKSE Member of: Math Script
Shifts value left by n number of bits.
Syntax[edit | edit source]
int Function LeftShift(int value, int shiftBy) global native
Parameters[edit | edit source]
- value: The integer that you wish to shift.
- shiftBy: How many bits to shift to the left.
Return Value[edit | edit source]
The decimal result of the shift.
Examples[edit | edit source]
int iA = Math.LeftShift(52, 5) ;iA == 1664
int iC = Math.LeftShift(0x00070, 1) ;iC == 224