Scalar. Returns the value of a specific bit in a binary value.
bittest ( expression, bit )
expression | The initial value, as an integer or a long. |
bit | Which bit to return. All other bits are set to zero. |
bittest (15, 3) returns 8, or in binary, bittest( 1111, 3) returns 1000. The user cannot directly specify binary.