- #1
Willjeezy
- 29
- 0
Homework Statement
Convert -89 to 32 bit representation (2-complement for negative numbers)
my answer does not agree with calculated answers from multiple conversion sites.
Homework Equations
The Attempt at a Solution
to get the exponent i figured out the closest 2 exponent to 89, which is 7.
then I added the exponent to the bias, 127 + 7 = 134
therefore 134 to binary would be: (I added underscores to separate the sign/exponent and mantissa
1__________1 0 0 0 0 1 1 0___________0 1 1 0 0 1
sign___________exponent______________ mantissa
the only problem is when i check my answer on multiple sites, the answer is
1 __________1 0 0 0 0 1 0 1 ___________0 1 1 0 0 1
_____________________^---exponent they have adds up to 133 ?
what am I doing wrong?