r/programminghomework • • Nov 20 '17

Binary question(maybe misc others)

So i'm trying to study for my exam, using a previous assignment i did, but i can't figure out why i got the question incorrect.

Question - What does the number 1000000_2 represent in decimal? (two's compliment)

I thought i would just compliment the bits( going from 10000000 ->> 11111111_2 then add 1. Which would give me [1]00000000. So in decimal i would have 0(tossing the overflow bit) Where did i go wrong?

1 Upvotes

6 comments sorted by