3.1: binary Flashcards
binary when a transistor is on
1
binary when a transistor is off
0
bit
can be a 0 or 1
nibble
a group of 4 bits
byte
a group of 8 bits
2 nibbles
base of denary
10
base of binary
2
highest value that can be represented by a byte
255
unsigned binary numbers
1 byte can represent positive values from 0 to 255
signed binary numbers
represents positive and negative values
decreases range of values that can be represented
sign and magnitude
assigns the most significant bit as the sign bit
1 represents a negative number
0 represents a positive number
means that only 7 bits are available
largest bit bit that can be represented = 127
values from -127 to 127
twos complement
the most significant bit represents -128 instead of 128
largest positive that can be represented is 127
largest negative number that can be represented is -128
binary addition
0+0=0
0+1=1
1+1=10
1+1+1=11
binary overflow
when there is a 9 bit which doesnt fit in the byte
disadvantage of binary overflow
one bit less available