Could you please convert 88 into binary showing the steps wi
Could you please convert -88 into binary showing the steps with 9 bits. I have the answer 101011000 (or -01011000). I just keep getting the same wrong answer.
Solution
given -88
we need to represent it in terms of binary equivalent for that we have to divide the number by 2 and write the remainder if it leaves any.
we get on dividing it step by step we get as such 88/2=44(quotient)+remainder is 0
44/2=22(quotient)+remainder is 0
22/2=11quotient)(+remainder is 0
11/2=5(quotient)+remainder is 1
5/2=2(quotient)+remainder is 1
2/2=1(quotient)+remainder is 0
writting it from bottom to top and we need to consider in the last case bothquotient and remainder and in remaining cases we only take remainder and hence we get as 1011000.
since we require 9 bit we can place the first bit of it for sign i.e 1 and next bit as 0 before the binary equivalent and then binary equivalent is 101011000
