LeftShift - Math

From the CreationKit Wiki
Revision as of 02:23, 30 May 2013 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE 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.

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

See Also