I have a funny radix conversion problem. I'm programming in a language called Solidity. It's very primitive and doesn't have many of the standard string and math operators that you'd expect in other languages.
I am passing the following data to my program:
"123456"
This compound string presents inside my program as three bytes (native byte types):
"12", "34" and "56"
I have successfully converted these strings to:
18, 52 and 86 (stored natively as uint types)
My question is this: how the hell do I convert 18, 52 and 86 to 123456 (i.e. a uint with the value one-hundred-and-twenty-three-thousand-four-hundred-and-fifty-six)?
Here is the answer: