Difference between revisions of "LeftShift - Math"
Jump to navigation
Jump to search
imported>Qazaaq (Added F4SE member) |
imported>Qazaaq (Category typo) |
||
Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category: | [[Category:F4SE]] | ||
'''F4SE Member of:''' [[Math Script]] | '''F4SE Member of:''' [[Math Script]] | ||
Revision as of 20:49, 20 April 2017
F4SE Member of: Math Script
Shifts value left by n number of bits.
Syntax
int Function LeftShift(int value, int shiftBy) Global Native
Parameters
- value: The integer that you wish to shift.
- shiftBy: How many bits to shift to the left.
Return Value
The decimal result of the shift.
Examples
int iA = Math.LeftShift(52, 5) ;iA == 1664
int iC = Math.LeftShift(0x00070, 1) ;iC == 224