bitfield1
bitfield1(x_valx_bitPosition) =>x_result
Description
Returns the value of a specified bit of a specified integer. Prefix form of the <> operator.
Arguments
|
Integer for which you want to extract the value of a specified bit. |
|
Value Returned
Examples
x = 0b1001
bitfield1(x 0)
=> 1
bitfield1(x 3)
=> 1
Related Topics
Return to top