RightShift - Math
Jump to navigation
Jump to search
SKSE Member of: Math Script
Shifts value right by n number of bits.
Syntax[edit | edit source]
int Function RightShift(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 right.
Return Value[edit | edit source]
The decimal result of the shift.
Examples[edit | edit source]
int iA = Math.RightShift(2146, 2) ;iA == 536
int iC = Math.RightShift(0x00802000, 9) ;iC == 16400