Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. how to convert decimal numbers to binary
  2. on paper right out the powers of 2 from 2^1 to 2^8. or start at 1 and double the last number 8 times
  3. then take the original decimal number and subtract the largest power of 2 that doesn't cause an answer less then zero
  4. make a mark each time you are able to subtract a number till you get to zero
  5. blank spaces = 0 marked spaces = 1
  6. 128 64 32 16 8 4 2 1
  7. 117
  8. 117 - 128 = X
  9. 117 - 64 = 53
  10. 53 - 32 = 21
  11. 21 - 16 = 5
  12. 5 - 8 = X
  13. 5 - 4 = 1
  14. 1 - 2 = X
  15. 1 - 1 = 0
  16. so 117 =
  17. |128| 64 | 32 | 16 | 8 | 4 | 2 | 1 |
  18. | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 |
  19. 01110101
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement