🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: 0.3-0.2=0.999999999998?

#16315
From: Prospero Software
Date: Tue, 09 Mar 1999 00:00
25 lines
1098 bytes
Berco

If you want to see further discussion of floating-point versus
'real' decimal (like packed), you may care to check out
www.prosperosoftware.co.uk,

cheers

Prospero Software

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: <36e5a8fa.109671343@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: f74b3,3b89176b465afef
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,3b89176b465afef
X-Google-Attributes: gid10a146,public
From: 100332.1257@nospam.compuserve.com (Prospero Software)
Subject: Re: 0.3-0.2=0.999999999998?
Date: 1999/03/09
Message-ID: <36e5a8fa.109671343@news.i-way.co.uk>
X-Deja-AN: 453921015
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