🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

help with Double.toString(double)

#1730
From: Ant�nio Ferreira
Date: Thu, 18 Oct 2001 11:05
14 lines
1378 bytes
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: <3bceb76f_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.64.68.27!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,596565ba2e6ec3ff,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-10-18 04:08:53 PST
From: "Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt>
Newsgroups: borland.public.jbuilder.java.api
Subject: help with Double.toString(double)
Date: Thu, 18 Oct 2001 12:05:05 +0100
Lines: 17
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.93
Message-ID: <3bceb76f_2@dnews>
X-Trace: dnews 1003403119 195.22.4.93 (18 Oct 2001 04:05:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.64.68.27!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews