Advertisement
Nik

Binary table

Nik
Sep 23rd, 2011
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.07 KB | None | 0 0
  1. | 2^7 |2^6 |2^5 |2^4 |2^3|2^2|2^1|2^0|
  2. | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 0 |
  3. --------------------------------------
  4. |     |    |    |    |   |   |   |   |
  5. |     |    |    |    |   |   |   |   |
  6. |     |    |    |    |   |   |   |   |
  7. |     |    |    |    |   |   |   |   |
  8. |     |    |    |    |   |   |   |   |
  9. |     |    |    |    |   |   |   |   |
  10. |     |    |    |    |   |   |   |   |
  11. |     |    |    |    |   |   |   |   |
  12. --------------------------------------
  13.  
  14. Example
  15. 106:
  16. 106 - 128 => cant, its <= 0     = 0
  17. 106 - 64  => can, its 42        = 1
  18. 42 - 32   => can, its 10        = 1
  19. 10 - 16   => cant, its <= 0     = 0
  20. 10 - 8    => can, its 2         = 1
  21. 2 - 4     => cant, its <= 0     = 0
  22. 2 - 2     => can, its 0         = 1
  23. 0 - 0     => cant, its <= 0     = 0
  24.  
  25. 107:
  26. 107 - 128 => cant, its <= 0     = 0
  27. 107 - 64  => can, its 43        = 1
  28. 43 - 32   => can, its 11        = 1
  29. 11 - 16   => cant, its <= 0     = 0
  30. 11 - 8    => can, its 3         = 1
  31. 3 - 4     => cant, its <= 0     = 0
  32. 3 - 2     => can, its 1         = 1
  33. 1 - 0     => can, its 1         = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement