🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #510

Re: two's complement and Flags (Re: arithmetic and endian history)

#510
From: John Levine
Date: Mon, 02 Nov 2026 18:43
32 lines
2955 bytes
According to Stephen Fuld  <sfuld@alumni.cmu.edu.invalid>:
>"Scientists and engineers demanded both precision and mathematical 
>consistency."  The result was both the 36 bit word and the use of 
>mathematical representation that provided complete symmetry of positive 
>and negative numbers. All of these machines used a numeric 
>representation that had an equal number of positive and negative numbers 
>and had both plus and minus zeros.  These requirements are still present 
>today in the form of the IEEE floating point standard.  The IBM , GE and 
>DEC machines used a signed-magnitude representation in which the sign 
>bit was just that/  The Sperry Rand Univac systems used a 
>ones-complement representation because it permitted faster addition and 
>subtraction with less hardware.  A complement cycle was not needed for 
>most operations."

The DEC PDP-10 had two's complement floating point but otherwise yes.
That last sentence is true compared to sign-magnitude but it did need
end-around carry.

>Of course, the paper doesn't explain why the requirement for symmetry 
>seemed to go away and two's complement became acceptable.

IEEE floating point is still sign-magnitude since among other things that
enables the hidden bit so you get more precision almost for free.

My guess is that for fixed point arithmetic, experience told people
that having to account for two versions of zero was a pain, while the
fact that the largest negative number had no positive representation
didn't matter.
-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID: <11caljv$jeo$1@gal.iecc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
References: <10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: John Levine <johnl@taugh.com>
Newsgroups: comp.arch
Subject: Re: two's complement and Flags (Re: arithmetic and endian history)
Date: Mon, 2 Nov 2026 18:43:11 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <11caljv$jeo$1@gal.iecc.com>
References: <10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 2 Nov 2026 18:43:11 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
	logging-data="19928"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)