docs-v2/content/flux/v0.x/stdlib/experimental/bitwise/urshift.md

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/).
flux_0_x_ref
name parent
bitwise.urshift bitwise
401
/flux/v0.x/data-types/basic/uint/
bitwise

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.