Documentation

bitwise.urshift() function

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

bitwise.urshift() shifts bits in a right by b bits. Both a and b are unsigned integers.

import "experimental/bitwise"

bitwise.urshift(a: uint(v: 21), b: uint(v: 4))

// Returns 1 (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.