700 B
700 B
title | description | menu | weight | related | flux/v0.x/tags | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bitwise.urshift() function | `bitwise.urshift()` shifts bits in `a` right by `b` bits. Both `a` and `b` are [unsigned integers](/flux/v0.x/data-types/basic/uint/). |
|
401 |
|
|
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.