hex/byte to int conversion

. Truly learn that and you are half way to understanding most of what computers do.

Ah! That's where I've been going wrong these thirty odd years.

I meant to say that it will turn it into a bit pattern, and that bit pattern will be a hex digit, but that hex digit won't have any particularly meaningful arithmetic relationship to the input character as far as the OP is concerned, but the ex-PFC Wintergreen in my head said "Too prolix"