    

 ## On this page

  

 

 # ShiftBitRt

 Last update: 17.07.2025 

Returns the input with all bits shifted to the right by a number. The most significant bits (left-most bit) are replaced by 0 and the least significant bits (right-most bit) are discarded. This is equivalent to the operator lsr.

## Interface

NameKindTypeCommentNPN/ASize of the bit-fieldbfIunsigned&lt;&lt;N&gt;&gt;Input bit-fieldlIIntegerNumber of bits to shift  
Range: \[0, N\[vOunsigned&lt;&lt;N&gt;&gt;Result of the operation**Parent topic:**[Bitfield](../../libraries/bitfield/bitfield.md)