# oct2bit

This function converts a single octetstring value to a single bitstring. The resulting bitstring represents the same value as the octetstring.

Related keyword:

- bitstring
- octetstring

### oct2bit(octetstring value) return bitstring

- For the conversion the following holds: oct2bit(value)=hex2bit(oct2hex(value)).

Example 1:

const bitstring c_kvar := oct2bit('44'O);

The constant called c_kvar will contain the bit string 01000100.