Article View: borland.public.jbuilder.java.api
Article #1644Re: help with Double.toString(double)
From: Joi Ellis [TeamB]
Date: Thu, 18 Oct 2001 14:34
Date: Thu, 18 Oct 2001 14:34
20 lines
1755 bytes
1755 bytes
"Ant๏ฟฝnio Ferreira" <antonio.ferreira@artesis.co.pt> wrote: > Greetings, > I would like to make a correction: in my text I wrote > formatedNumber=0.99999... and it should be 0.09999... > With nothing else to say I thank all your attention 0.1 and 0.01 are irrational numbers when expressed in base 2 (binary.) Computers can't store these values without losing precision. This is why financial packages always express money as integer pennies or whatever the smallest monetary unit is. -- Joi Ellis (TeamB) http://www.teamb.com/ No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3bcee865_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mailReferences:
<3bceb76f_2@dnews> <3bced32d_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,596565ba2e6ec3ff
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-10-18 07:40:00 PST
Message-ID: <3bcee865_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: help with Double.toString(double)
Newsgroups: borland.public.jbuilder.java.api
References: <3bceb76f_2@dnews> <3bced32d_1@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 209.46.41.66
Date: 18 Oct 2001 07:34:13 -0700
X-Trace: dnews 1003415653 209.46.41.66 (18 Oct 2001 07:34:13 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail