Hexadecimal and binary

Thread Starter

arcsky

Joined Apr 17, 2009
12
Decimal 247,37 to hexadecimal I can only do
from 247 to hexa like this:

2*16^2 + 4*16^1 + 7*16^0 = 41.

But .37 how to make that ?


Also i wonder how to make decimal 0.37
to binary code.

Thanks for help
 

vvkannan

Joined Aug 9, 2008
138
To convert decimal to hexadecimal
you have to divide by 16(so for 247 its f7) .
To convert the decimal part multiply the decimal part by 16 and discard the decimal part.

example:0.37 x 16 = 5.92 -> 5

.92 x 16 = 14.72 -> e (for 14)
so 5e.( continuing in a similar way you can get the answer for as many points as you want.)
 

Thread Starter

arcsky

Joined Apr 17, 2009
12
F7.5EB gives F7.5F because B > 8
Answer: F7.5F

Why does teacher said F7.5F and not F7.5EB ?
Please explain because i dont understand the decimal so well.
 
Top