Convert hexa to binary

  • #1
21
0

Homework Statement


convert 0.e to binary


Homework Equations





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.

http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html
 
  • #2
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.
 
  • #3
o i see thanks that makes sense
 
  • #4
Given any hex number to binary, simply convert each hex digit to 4 binary bits, keeping the decimal point in the same position.
 
  • #5
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
 
  • #6
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.
 
  • #7
Hmmm, I thought I saw something about converting it to decimal also in the OP, but I guess I was wrong. :blushing:
 
  • #8
Hmmm, I thought I saw something about converting it to decimal also in the OP, but I guess I was wrong. :blushing:
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.
 

Suggested for: Convert hexa to binary

Replies
3
Views
497
Replies
5
Views
1K
Replies
1
Views
2K
Replies
4
Views
2K
Back
Top