Loading

BITGET


bitset binary
Since v1.0.5
Available on all platforms
See also

Returns the value of the bit with the specified index.

The BITGET function consumes a bitset and a long on the top of the stack. It returns the value of the bit with the specified index. The bit index starts at 0 from the right.

Signature

Examples

'0010110001000011' BIN-> BYTESTOBITS // Create a bitset with a string as input 6 BITGET // Get the bit at the index 6 (value 1)