FIRSTLY, I hope this is the right forum to ask this question, otherwise please, tell me where should I re-post it or move it(if possible).
So I have a situation in which I need to convert the "decimal" 74 to hexadecimal 4A.
I currently know how to convert that 4A to 74 which is pretty easy, what I'm having troubles with is how to get the 4A from 74?
Can somebody please tell me how to do it?So far the only thing I know is how to get the first number(inn this case is 4) by doing this:
74/16= 4.625 (we only care about the numbers before the dot; 4)
4*16 = 64
now to get the remainder, we subtract 74-64
74-64= 10(this is the remainder).
my PROBLEM comes here, I have seen a lot of videos doing the same thing but I don't know why I keep getting these results:
from the last steps we bring the number 10(remainder) to divided by 16 and get the second hex term.
10/16= 0.625(we only care about the first number before the dot, right?)
0.625 x 16 = 10
then we bring the first remainder again(10) to subtract it with the second remainder which is 10 as well, so:
10-10 = 0.(this should be the third hex number)
So pretty much the result we get is this:
4,0,0... how in the world the two zeros can represent the A? because is 10.
Any help would be very appreciated . I hope I could make myself clear.