I think i answered my own questions...

((char1-48) * 16) + (char2 -48)

thanks anyway! let me know if there is a flaw in that