Background for Fallout 4
Member of the Math script
intfunctionLeftShift(intvalue, intshiftBy)NativeGlobal

Description

Wiki Description

Shifts value left by n number of bits.

Documentation Comment

F4SE additions built 2025-11-11 02:05:33.464000 UTC


Caveats


Parameters

intvalue

CK Wiki Description

The integer that you wish to shift.

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 Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.