🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

numbers

#1069
From: News
Date: Sat, 01 Jun 2002 01:58
23 lines
1305 bytes
Hi. This is Carlos, from Brazil. Please, I trying use this code:

try
{
String tempPreco = "210";

NumberFormat nf = NumberFormat.getCurrencyInstance();
nf.setParseIntegerOnly(false);
Number  myNumber = nf.parse(tempPreco);
}
 catch(ParseException nb1)
{
  nb1.printStackTrace();
 }

I get the error message:

java.text.ParseException: Unparseable number: "210"

Anybody can tell me about?

Thanks,
Carlos Silva
Technical Details
Message-ID: <3cf82a43$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!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-7-bit
X-Google-Thread: 1089d0,3678cfaef5fc9241,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-31 19:09:08 PST
Reply-To: "News" <silva@carlosilva.com>
From: "News" <silva@carlosilva.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: numbers
Date: Fri, 31 May 2002 22:58:23 -0300
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 200.162.246.185
Message-ID: <3cf82a43$1_2@dnews>
X-Trace: dnews 1022896707 200.162.246.185 (31 May 2002 18:58:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews