Advertisement
Madotsuki

Binary decimals

Feb 13th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. 0.333
  2.  
  3. 0.333
  4. * 2
  5. 0.666 <------ 0 (1st)
  6. * 2
  7. 1.332 <------ 1 (2nd)
  8. * 2 [over here it's .332 * 2, only the decimal place matters]
  9. 0.664 <------ 0 (3rd)
  10. * 2
  11. 1.328 <------ 1 (4th)
  12. * 2
  13. 0.656 <------ 0 (5th)
  14. * 2
  15. 1.312 <------ 1 (6th)
  16.  
  17.  
  18. and so forth...
  19.  
  20. Then for the final binary combination, you just go from the first one down (unlike whole numbers for division)
  21.  
  22. So then the answer is 0.010101...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement