🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1642

Re: help with Double.toString(double)

#1642
From: Ant�nio Ferreira
Date: Thu, 18 Oct 2001 13:03
28 lines
1707 bytes
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

             Ant�nio Jos� Ferreira

"Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt> wrote in message
news:3bceb76f_2@dnews...
> Hi,
>
>   I am using the following code:
>
>     formatedNumber = Double.toString(number);
>
>   where formatedNumber is a string and number is a double. When number is,
> for example, 0.1 the conversion isn't done correctly
> (formatedNumber="0.999999999999999980"). If number is 80.0 the conversion
is
> done correctly. By the way, I am using java 2 and Jbuilder 3. Can anyone
> help me?
>   I appreciate all your help. Thanks,
>
>                                                    Ant�nio Jos� Ferreira
>
>
>
Technical Details
Message-ID: <3bced32d_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3bceb76f_2@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 06:09:13 PST
From: "Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt>
Newsgroups: borland.public.jbuilder.java.api
References: <3bceb76f_2@dnews>
Subject: Re: help with Double.toString(double)
Date: Thu, 18 Oct 2001 14:03:32 +0100
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 195.22.4.90
Message-ID: <3bced32d_1@dnews>
X-Trace: dnews 1003410221 195.22.4.90 (18 Oct 2001 06:03:41 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews