RightShift - Math
Revision as of 17:46, 21 January 2018 by imported>Qazaaq (added required f4se version)
F4SE Member of: Math Script
Requires F4SE version 0.2.0 or higher.
Shifts value right by n number of bits.
SyntaxEdit
int Function RightShift(int value, int shiftBy) Global Native
ParametersEdit
- value: The integer that you wish to shift.
- shiftBy: How many bits to shift to the right.
Return ValueEdit
The decimal result of the shift.
ExamplesEdit
int iA = Math.RightShift(2146, 2) ;iA == 536
int iC = Math.RightShift(0x00802000, 9) ;iC == 16400