binary numbers Flashcards
Mantissa and Exponent
2.75
8 4 2 1 1/2, 1/4, 1/8
0 0 1 0 . 1, 1, 0
move dot 2 to the left so it is behind the first 1
0.1011
sign magnitude
the bit to the left is a sign bit, that tells whether the number is a positive or a negative. then you make up the number as normal binary
twos complement
bit to left to say negative version of the number. 128 = -128
you then have to work out the number by adding the values to - 128 to get the negative number
-1) 117 in sign magnitude would be: 1110101
2) -117 in twos complement would be: 10001011
1) you make the number normally 64 + 32 = 96 + 16 = 112 + 4 = 116 + 1 = 117 + - = -117
2) you use the -128 and then add onto numbers to find the number you need. for example, -128 + 8 = -120 + 2 = -118 + 1 = -117
floating numbers
Exponent tells you how much you move the bullet point.
Positive = move point to the right
Negative = Move number to the right
Mantissa is the number