Using....
sign bit of mantissa 8 bit exponent in two's complement 23 bit mantissa
code the following: -28.625
Can someone show me the easiest way to do this...lecturer wasn't very helpful!
Using....
sign bit of mantissa 8 bit exponent in two's complement 23 bit mantissa
code the following: -28.625
Can someone show me the easiest way to do this...lecturer wasn't very helpful!
If the number is negative, then the first bit is representated as 1. Next convert the whole number part and fraction part into binary values. Move the radix next to the left most 1 bit, and count how many places it moved, this is your n, and all the bits to the right will go to mantissa. As for the exponent, it is bias (2^n-1) + n, so in this case bias is 2^8-1 = 127, and add n to this, convert this to binary. The rest of the bit places are for mantissa. I believe the answer is 11000001111001010000000000000000