Difference between revisions of "LeftShift - Math"
Jump to navigation
Jump to search
imported>Bot Owned (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Math Script Shifts value left by n number of bits. == Syntax == <source lang="papyrus...") |
imported>Bot Owned m (Added which direction to shiftby) |
||
Line 13: | Line 13: | ||
== Parameters == | == Parameters == | ||
*value: The integer that you wish to shift. | *value: The integer that you wish to shift. | ||
*shiftBy: How many bits to shift. | *shiftBy: How many bits to shift to the left. | ||
== Return Value == | == Return Value == |
Latest revision as of 03:01, 30 May 2013
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