Skip to content

shiftRight

shiftRight(binary, positions) → binary · Binary

Shift bits right by the specified number of positions.

  • binary (required): binary data

  • positions (required): number of positions to shift

utlx
shiftRight(toBinary("A", "UTF-8"), 2)    // bits shifted right by 2

Released under AGPL-3.0.