    

 ## On this page

  

 

 # CopyBit

 Last update: 17.07.2025 

Returns the input with the bit at the given position copied from the source at another position.

## Interface

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