# Convert hexa to binary

• sporus

## Homework Statement

convert 0.e to binary

## The Attempt at a Solution

the method the teacher taught for numbers less than zero was multiply by the desired base. then take the whole number and write it down as part of the converted number and drop it.

ie 0.8*2 = 1.6 drop the 1 and you have 0.6

then take the leftover and multiply it over and over again until you have reaches the number of significant digits or you reach 1.0

write down all the numbers that were dropped and you have the number in a different base

so i did

0.E * 2 = 1.C
0.C * 2 = 1.8
0.8 * 2 = 1.6
0.6 * 2 = 1.2

but the answer i come up with is wrong because i checked it here.

In hex, 0.8 * 2 = 1.0, not 1.6.

Also, if we ignore the above for a moment and look at the last line:
0.6 * 2 = 1.2
This is wrong too. 0.6 * 2 = 0.C.

o i see thanks that makes sense

Given any hex number to binary, simply convert each hex digit to 4 binary bits, keeping the decimal point in the same position.

You can also think of e in 0.e as being in the 1/16th place. e in decimal is 14, so 0.e = 14/16 = 0.875

True. And that's fine for converting hex to decimal, however the OP is converting hex to binary, so your way would require much more work.

Hmmm, I thought I saw something about converting it to decimal also in the OP, but I guess I was wrong.

Hmmm, I thought I saw something about converting it to decimal also in the OP, but I guess I was wrong.
I thought the same thing, at first. In fact, I had a reply similar to yours ready to post and decided to re-read the OP one last time, so I caught myself.