🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: 0.3-0.2=0.999999999998?

#16373
From: Prospero Software
Date: Thu, 04 Mar 1999 00:00
21 lines
1112 bytes
To see the difference between floating-point and 'real' decimal
numbers, you may care to have a look at www.prosperosoftware.co.uk.
Our PSPDec class (true decimal is FREE).

Prospero Software Products

On Thu, 4 Mar 1999 09:27:39 +0100, "-=(CyBerco)=-"
<Berco.Beute@EverMind.com> wrote:

>Hi,
>
>Try the following:
>
>System.out.println("What is 0.3-0.2 ? :  " + (0.3-0.2));
>
>How come? I sure didn't expect this outcome!
>
>Greetings,
>Berco.
>
>
Technical Details
Message-ID: <36dec9ec.3063452@news.i-way.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7blg56$2pl$1@zonnetje.NL.net>

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: 100332.1257@nospam.compuserve.com (Prospero Software)
Subject: Re: 0.3-0.2=0.999999999998?
Date: 1999/03/04
Message-ID: <36dec9ec.3063452@news.i-way.co.uk>
X-Deja-AN: 451235743
References: <7blg56$2pl$1@zonnetje.NL.net>
Organization: Posted via VBCnet GB Ltd
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.programmer