Two's complement

Moderators: jkien, Xilvo

Reageer
Gebruikersavatar
Berichten: 7.390

Two's complement

Hoi,

hoe doe je -2 + -1 in two's complement?

1110+1111 moet dan 1101 worden, maar ik vind niet meer hoe ;-(

Alvast bedankt!
"C++ : Where friends have access to your private members." Gavin Russell Baker.

Berichten: 2.504

Re: Two's complement

Met welke programmeertaal wil je dat doen? Of bedoel je met pen en papier?
"Invisible Pink Unicorns are beings of great spiritual power. We know this because they are capable of being invisible and pink at the same time. Like all religions, the Faith of the Invisible Pink Unicorns is based upon both logic and faith. We have faith that they are pink; we logically know that they are invisible because we can't see them."

Gebruikersavatar
Berichten: 7.390

Re: Two's complement

Met pen en papier: ik wilde weten hoe dat intern in zijn werk gaat...

Maar intussen begrijp ik het, toch bedankt!
"C++ : Where friends have access to your private members." Gavin Russell Baker.

Reageer