![]() |
![]() |
![]() |
![]() |
![]() |
This function converts a single bitstring value to a single charstring. The resulting charstring has the same length as the bitstring and contains only the characters '0' and '1'.
For the purpose of this conversion, a bitstring should be converted into a charstring. Each bit of the bitstring is converted into a character '0' or '1' depending on the value 0 or 1 of the bit. The consecutive order of characters in the resulting charstring is the same as the order of bits in the bitstring.
Related keyword:
bit2str(bitstring value) return charstring |
Example 1:
const charstring c_bokstaever := bit2str('101001011010'B);
The constant called c_bokstaever will contain the string 101001011010 because the resulting character string has the same length as the bit string and contains only the characters '0' and '1'.