    

 ## On this page

  

 

 # GetBit

 Last update: 17.07.2025 

Returns whether the bit at the given position of the input is 1.

## Interface

NameKindTypeCommentNPN/ASize of the bit-fieldbfIunsigned&lt;&lt;N&gt;&gt;Input bit-fieldpIintegerBit position  
Range: \[0, N\[vOboolResult of the operation**Parent topic:**[Bitfield](../../libraries/bitfield/bitfield.md)