Decimal to binary conversion question

Nov 7, 2000
16,403
3
81
... 2^2 + 2^ 1 + 2^0 + 2^-1 + 2^-2 + 2^-3 ...
the decimal point is between the 0 and -1 exponents

so, .5 or 1/2 base ten is .1 in binary
.75 or 3/4 is .11 (2^-1 + 2^-2)
thats the gist, hope not too confusing

for other, not so nice conversions you gotta think about infinite geometric series and stuff that im not too fresh on
 

Gibson486

Lifer
Aug 9, 2000
18,378
1
0
seeing as how you are pondering about binary conversions, i am guessing that is the best pic you could get.....
 

Zanix

Diamond Member
Feb 11, 2003
5,568
12
81
Originally posted by: HardcoreRobot
... 2^2 + 2^ 1 + 2^0 + 2^-1 + 2^-2 + 2^-3 ...
the decimal point is between the 0 and -1 exponents

so, .5 or 1/2 base ten is .1 in binary
.75 or 3/4 is .11 (2^-1 + 2^-2)
thats the gist, hope not too confusing

for other, not so nice conversions you gotta think about infinite geometric series and stuff that im not too fresh on



ok... So, I'm thinking 0.1 binary = .5 dec, so 0.01 bin = 0.25 dec, so that 0.11 bin = 0.75 bin, right? (.25 + .50)

So then, 0.001 bin = 0.125 dec?


The hw question I'm trying to answer is:

16.625 dec = _______ bin


I'm thinking 10000.101



Is that right?



thx for the help btw

 

b3b0p

Senior member
May 18, 2003
214
0
76
Example: Convert 0.8 to Binary


0.8 <---
x 2
-----
1.6
x 2
-----
1.2
x 2
-----
0.4
x 2
-----
0.8 <---


0.8 base 10 is equivalent to 1100 base 2

Perhaps not the best way, but very simple to follow.

Sorry for the crummy formatting. Forum formatting won't let me use more then one space.


Chris