To determine the value of each bit in a byte.

Otherwise I wouldn’t have written it that way…

There is no function that converts a hex to a character,
otherwise I wouldn’t have written my own functions… also including this…
You’d better take a look…
http://forum.mikrotik.com/t/how-to-convert-a-hex-value-to-a-char/97913/9