Hexadecimal Addition without int / Long conversion
843789Nov 20 2009 — edited Nov 22 2009Hi all,
I am trying to add two numbers represented as strings, i.e., addition of two hexadecimal numbers. I am aware of the addition process where we convert the strings to number format (int / long) and add these two and convert the result back to Hex.
I do not want to use this process due to limitations in precision of int and long data-types. Is there any other way of adding these hex numbers? My line of thought forces me to consider the following process:
A)Hex to Binary ;
B)Binary Addition ;
C)Binary Result to Hex
Will this work or am I wrong?
All inputs are appreciated!!
Cheers,
krazy_koder