I don't get your point.
If you store the decimal value of 38 in any byte, it will still remain the value of say 38 apples.
It is a matter of notation if you want to write that down as 38 paintetd apples, the decimal 38 (= (3 x 10) + (8 x 1)), the HEX26 (= (2 x 16) + (6 x 1)), or BINARY00100110 (= 0x128 + 0x64 + 1x32 +0x16......).
As the physical chip can only store the two values of 0 and 1, it will use binary in its inner brain.
First question:
Where does you binary value come from? Is it stored in a byte? Or is it a string (S='00100110')?
Second question:
what are you going to do with that value?
Do you want to store its value, its string representation in dec, bin, oct, hex?
Do you want to print it in any representation?
I cannot see all that from your question!
Marc
↧