#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

#### Categories

Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

# 2's complement number

Posts: 20Member
hello, does anyone know how to find the decimal equivalent of the four-bit two's complement number: 1000
· ·

• Posts: 1,018Member
: hello, does anyone know how to find the decimal equivalent of the four-bit two's complement number: 1000
:

[green]
1000= 8

~8

0111= ~8
+
0001
----
1000= -8
[/green]

· ·
• Posts: 20Member
i understand 2's complement, but i do not understand how did you get 8?
· ·
• Posts: 1,018Member
: i understand 2's complement, but i do not understand how did you get 8?
:

[green]

8 4 2 1
1 0 0 0

Largest negative number for 4 bits is -8 while the biggest positive is 7.
[/green]
· ·
• Posts: 20Member
finally, i get it. thanks for your help
· ·