Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to convert decimal numbers to binary
- 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
- then take the original decimal number and subtract the largest power of 2 that doesn't cause an answer less then zero
- make a mark each time you are able to subtract a number till you get to zero
- blank spaces = 0 marked spaces = 1
- 128 64 32 16 8 4 2 1
- 117
- 117 - 128 = X
- 117 - 64 = 53
- 53 - 32 = 21
- 21 - 16 = 5
- 5 - 8 = X
- 5 - 4 = 1
- 1 - 2 = X
- 1 - 1 = 0
- so 117 =
- |128| 64 | 32 | 16 | 8 | 4 | 2 | 1 |
- | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 |
- 01110101
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement