RightShift - Math

Revision as of 04:01, 30 May 2013 by imported>Bot Owned (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Math Script Shifts value right by n number of bits. == Syntax == <source lang="papyru...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Math Script

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

See AlsoEdit