I have been reading THIS PAGE (among others) but still can't find my answer.
I'm trying to get Lua to convert an 8 bit value (i.e., an integer from 0 to 255) into a 2 Byte Ascii representation of the corresponding Hex chars
The only Lua syntax that I know how to use for this purpose is this one...
MyString = string.format("%1x", That_Number )
... but, when the number is 0 to 15, that syntax gives me: 1 2 3 4 5 6 7 8 9 a b c d e f
... while this is what I really want: 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
My Question: Is there a simple syntax to guarantee me a "two digit" Ascii representation ?
("simple" means that it's already built into the syntax; not a function that I have to write)
p.s., it would be nice if I could get the A, B, C, D, E, F characters as upper case.