Explore BrainMass

Two's Complement Binary to Decimal conversion

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

I need assistance in answering the following question:

What is the decimal value of "01111111111111111101111111111102" (in two's complement)?

© BrainMass Inc. brainmass.com September 24, 2018, 9:09 pm ad1c9bdddf - https://brainmass.com/computer-science/algorithms/twos-complement-binary-decimal-conversion-515811

Solution Preview

Consider a binary number consisting of N+1 bits, specified as below:
bN ... b2 b1 b0

It's decimal equivalent (considering it in two's complement representation) would be computed as shown ...

Solution Summary

Solution first considers a binary number consisting of N+1 bits, bN ... b2 b1 b0, and shows how its equivalent decimal value can be computed.