BitShiftLeftInteger (Float function)

From m204wiki
Revision as of 17:30, 2 November 2012 by JAL (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Do left shift of bits in an integer (Float class)

[Introduced in Sirius Mods 7.9]


The BitShiftLeftInteger intrinsic function performs a left shift on the bits of an integer.

Syntax

%result = float:BitShiftLeftInteger( shift)

Syntax terms

%result A numeric variable to receive the result of shifting the bits of float.
float The integer to be shifted.
shift The shift length.

Usage notes

  • The BitShiftLeftInteger function is available as of Sirius Mods Version 7.9.

Examples

The following statement sets %y to 4 times %x:

%y = %x:bitShiftLeftInteger(2)

See also