Sujet : Re: What is your opinion about unsigned int u = -2 ?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 08. Aug 2024, 00:48:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v91157$3eui3$2@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.159 (Vovchansk; )
On Sun, 4 Aug 2024 20:29:21 +0200, Bonita Montero wrote:
Since the mid of the 70s all new machines work all with 2s complement.
There will be never computers with different notations since the 2s
complement makes the circuit design easier.
This may be hard to believe, but I think in the early days 2s-complement
arithmetic was seen as something exotic, like advanced mathematics or
something. To some, sign-magnitude seemed more “intuitive”.
As for ones-complement ... I don’t know to explain that.