For my hw i have to change numbers from base 10 to base 2 and write the answer as 1 byte (8 bits).
so for
1.2. ~ Binary =10
2.20.~ Binary = 10100
3.200.~Binary =11001000
How would i write the answers as 1 byte???Thanks in advance
so for
1.2. ~ Binary =10
2.20.~ Binary = 10100
3.200.~Binary =11001000
How would i write the answers as 1 byte???Thanks in advance
-
Write it with enough leading zeros to fill out 8 spaces.
2 = 00000010
2 = 00000010
-
01-10-11-100-101-110-111-1000-1001-1010- 1011 - 1100- 1101-1111- 10000
1 - 2 -3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11- 12 - 13 - 14 - 15
This is the system. Just keep working. As far as I know, a byte is 1 or 0 in the binary system.
1 - 2 -3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11- 12 - 13 - 14 - 15
This is the system. Just keep working. As far as I know, a byte is 1 or 0 in the binary system.
-
1=1