🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16377

Re: 0.3-0.2=0.999999999998?

#16377
From: Roedy Green
Date: Thu, 04 Mar 1999 00:00
24 lines
1958 bytes
On 05 Mar 1999 00:09:41 +0100, Tor Iver Wilhelmsen <toriw@online.no>
wrote:

>Kinda opens a possibility for maths akin to how BigDecimal and friends
>do their stuff - as long as you remembered to adjust your decimal
>point correctly.

The IBM 360 packed decimal -- 1 nibble per digit plus sign still
handled only integers, not floating point.  It was quite a bit slower
than binary arithmetic, and usually not as compact.  The main reason
to use it was for numbers too big to fit in 31 bits. The PL/1 compiler
would do some scaling for you which was its other attraction.  

Today's programmers, raised on machines with hardware floating point,
seem to think that scaling an integer and inserting a decorative
decimal point is rocket science.  They keep needlessly reverting to
floating point with its speed penalities and fuzz problems.



For the JAVA GLOSSARY and the CMP Utilities: <http://mindprod.com>
--
Roedy Green,  Canadian Mind Products 
-30-
Technical Details
Message-ID: <36e00a8e.91498267@news.bctel.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7blg56$2pl$1@zonnetje.NL.net> <36DE833A.DFA9E627@alphalink.com.au> <36e3c58e.73834728@news.bctel.ca> <wkk8wwlumi.fsf@mail.online.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5d71,3b89176b465afef
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 10a146,3b89176b465afef
X-Google-Attributes: gid10a146,public
X-Google-Thread: f74b3,3b89176b465afef
X-Google-Attributes: gidf74b3,public
From: roedy@mindprod.com (Roedy Green)
Subject: Re: 0.3-0.2=0.999999999998?
Date: 1999/03/04
Message-ID: <36e00a8e.91498267@news.bctel.ca>
X-Deja-AN: 451344249
Content-Transfer-Encoding: 7bit
References: <7blg56$2pl$1@zonnetje.NL.net> <36DE833A.DFA9E627@alphalink.com.au> <36e3c58e.73834728@news.bctel.ca> <wkk8wwlumi.fsf@mail.online.no>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@bctel.net
X-Trace: news.bctel.net 920590782 209.53.13.103 (Thu, 04 Mar 1999 15:39:42 PDT)
Organization: Canadian Mind Products
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 04 Mar 1999 15:39:42 PDT
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.programmer