• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Decimal to binary conversion question

... 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
 
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

 
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
 
Back
Top