Documentation

bitwise.srshift() function

Flux 0.138.0+

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

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

import "experimental/bitwise"

bitwise.srshift(
  a: 21,
  b: 4
)

// Returns 1

Parameters

a

Left operand.

b

Number of bits to shift.


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.