🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: 0.3-0.2=0.999999999998?

#16371
From: Tudor Holton
Date: Thu, 04 Mar 1999 00:00
18 lines
1278 bytes
I've never understood why we can't just represent numbers after the
decimal place as the size in reverse.  e.g. 16.16 would be A:3D  (or
16:61 in decimal)

Tudor

"-=(CyBerco)=-" 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: <36DE833A.DFA9E627@alphalink.com.au>
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: 10a146,3b89176b465afef
X-Google-Attributes: gid10a146,public
X-Google-Thread: f5d71,3b89176b465afef
X-Google-Attributes: gidf5d71,public
X-Google-Thread: f74b3,3b89176b465afef
X-Google-Attributes: gidf74b3,public
From: Tudor Holton <tudor@alphalink.com.au>
Subject: Re: 0.3-0.2=0.999999999998?
Date: 1999/03/04
Message-ID: <36DE833A.DFA9E627@alphalink.com.au>
X-Deja-AN: 451137764
Content-Transfer-Encoding: 7bit
References: <7blg56$2pl$1@zonnetje.NL.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@news.alphalink.com.au
X-Trace: news.alphalink.com.au 920592073 4496 202.161.100.27 (5 Mar 1999 00:01:13 GMT)
Organization: Alphalink
Mime-Version: 1.0
NNTP-Posting-Date: 5 Mar 1999 00:01:13 GMT
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.programmer