• Support PF! Buy your school textbooks, materials and every day products Here!

Convert hexa to binary

  • Thread starter sporus
  • Start date
  • #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
 

Answers and Replies

  • #2
eumyang
Homework Helper
1,347
10
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
21
0
o i see thanks that makes sense
 
  • #4
754
1
Given any hex number to binary, simply convert each hex digit to 4 binary bits, keeping the decimal point in the same position.
 
  • #5
867
0
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
754
1
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
867
0
Hmmm, I thought I saw something about converting it to decimal also in the OP, but I guess I was wrong. :blushing:
 
  • #8
754
1
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.
 

Related Threads for: Convert hexa to binary

Replies
3
Views
3K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
7
Views
1K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
7
Views
2K
  • Last Post
2
Replies
25
Views
4K
  • Last Post
Replies
4
Views
5K
  • Last Post
Replies
5
Views
2K
Top