The B2X function converts a binary string to the equivalent string of hexadecimal characters.
result = B2X( binary-string ) |
Examples:
say B2X( '11000011' ) -- shows 'C3' say B2X( '10111' ) -- shows '17' say B2X( '1 1111 0000' ) -- shows '1F0' say B2X( '1 1111 101' ) -- ERROR !! the last sequence is not a multiple of four digits long |