bitfield
bitfield(x_valx_msbx_lsb) =>x_result
Description
Returns the value of a specified set of bits of a specified integer. Prefix form of the <:> operator.
Arguments
|
Integer for which you want to extract the value of a specified set of bits. |
|
Value Returned
Examples
x = 0b1011
bitfield(x 2 0)
=> 3
bitfield(x 3 0)
=> 11
Related Topics
Return to top