Background for Skyrim SE
Member of the Math script
intfunctionLeftShift(intvalue, intshiftBy)NativeGlobal

Description

Wiki Description

Shifts value left by n number of bits.

Documentation Comment

SKSE64 additions built 2024-01-17 20:01:40.731000 UTC


Parameters

  1. intvalue

    CK Wiki Description

    The integer that you wish to shift.

  2. intshiftBy

    CK Wiki Description

    How many bits to shift to the left.


Examples

int iA = Math.LeftShift(52, 5) ;iA == 1664
int iC = Math.LeftShift(0x00070, 1) ;iC == 224

Auto-Generated Example

int myInt__value
int myInt__shiftBy

int returnedValue = Math.LeftShift(myInt__value, myInt__shiftBy)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.