Browse docsmath.shift_left
On this page
API method

math.shift_left

Shifts an unsigned 32-bit value left by amount bits; bits shifted past bit 31 are lost.

Syntax

Atlas Script
math.shift_left(value, amount)

Parameters

value
Value written, converted, or evaluated by this method. Its required type and range are described in Remarks.
amount
Number of bit positions to shift. Only the low five bits are used, so the shift is 0 through 31.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Shifts an unsigned 32-bit value left by amount bits; bits shifted past bit 31 are lost. Only the low five bits of amount are used, so the shift is 0-31.

Examples

Usage pattern
// Replace value, amount with values described above.
math.shift_left(value, amount);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.