The Student Room Group

binary conversions

- The question is convert 19.625 base 10 to binary, accurately to 4 binary places after point

For 19 I get 10011 with the remainder method and for 0.625 I get 125? So confused

19.625
19:
19/2 = 9 r 1
9/2 = 4 r 1
4/2 = 2 r 0
2/2 = 1 r 0
1/2 = 1 r 1

0.625:
0.625 x 2 = 1.25
1.25 x 2 = 2.50
2.50 x 2 = 5.00
+ ok nvm, I figured it out, smh
- 10011.125? what
the lecturer went over this today (first class) I have no computer science experience so im super confused rn
and what does 'accurately to 4 binary places after point' part mean?

because the previous question was with 18.25 and I got 10010.01, do I just add 2 more 0's at the end?
(edited 4 years ago)
Reply 1
i dont know if the final objective is knowing how to do it in your head, but have you tried a base 10 to binary converter? seems a bit obvious but i just want to put it out there
Original post by olopaxx
i dont know if the final objective is knowing how to do it in your head, but have you tried a base 10 to binary converter? seems a bit obvious but i just want to put it out there

I know what the answer is but i dont know how you get it :/
10011.1010
after the decimal (from left to right) it goes 1/2 , 1/4, 1/8 , 1/16 ect..... so to get 0.625 you get the first and third bit(which when added it gets 0.625), just like on the left of the decimal it goes 1,2,4,8,16 ect...
Reply 5
if you express 0.625 as a fraction 5/8 it is easier to convert to binary

Quick Reply

Latest

Trending

Trending