Documentation

bitwise.ulshift() function

The bitwise.ulshift() function is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

bitwise.ulshift() shifts bits in a left by b bits. Both a and b are unsigned integers.

import "experimental/bitwise"

bitwise.ulshift(a: uint(v: 12), b: uint(v: 21))

// Returns 25165824 (uint)

Parameters

a

Left operand.

b

Number of bits to shift.


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.