bitwise.slshift() function

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

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

import "experimental/bitwise"

bitwise.slshift(a: 12, b: 21)

// Returns 25165824



Left operand.


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.