Today we started learning about Binary Numbers, how to convert a decimal into binary and how to add binary numbers together.
This gif I found online explains how to convert the number 155 into a binary number, using base 2 numbers.
We were given some numbers to work out into a binary number:
7= 111 ✓
32s | 16s | 8s | 4s | 2s | 1s |
0 | 0 | 0 | 1 | 1 | 1 |
16= 10000 ✓
32s | 16s | 8s | 4s | 2s | 1s |
0 | 1 | 0 | 0 | 0 | 0 |
19= 10011 ✓
32s | 16s | 8s | 4s | 2s | 1s |
0 | 1 | 0 | 0 | 1 | 1 |
30= 11110 ✓
32s | 16s | 8s | 4s | 2s | 1s |
0 | 1 | 1 | 1 | 1 | 0 |
54= 10110 ✓
32s | 16s | 8s | 4s | 2s | 1s |
1 | 1 | 0 | 1 | 1 | 0 |
I really enjoyed doing these, however, I didnt realise with the adding, that 1+1=0, and I thought it was still just 1, so I got the addition question wrong at first, but afterwards I realised where I had went wrong.
Adding binary numbers
101100 +
000110
______
111110 X
110010
IN BINARY 1+1 = 0
2863 = 101100101111
4096s | 2048s | 1024s | 512s | 256s | 128s | 64s | 32s | 16s | 8s | 4s | 2s | 1s |
0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 |