🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: numbers

#1070
From: Gillmer J. Derge [TeamB]
Date: Sat, 01 Jun 2002 02:56
14 lines
1405 bytes
"News" <silva@carlosilva.com> wrote in message news:3cf82a43$1_2@dnews...
> String tempPreco = "210";
>
> NumberFormat nf = NumberFormat.getCurrencyInstance();
> nf.setParseIntegerOnly(false);
> Number  myNumber = nf.parse(tempPreco);

The format strings used by the currency instances generally include the
currency symbol.  In the US that's the dollar sign ($).  I don't know what
symbol is used in Brazil.  For example, with a US locale "$210" would parse
correctly but "210" will not.

--
Gillmer J. Derge [TeamB]
Technical Details
Message-ID: <3cf837c6$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews
References: <3cf82a43$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,3678cfaef5fc9241
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-31 20:01:35 PST
From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3cf82a43$1_2@dnews>
Subject: Re: numbers
Date: Fri, 31 May 2002 22:56:11 -0400
Lines: 17
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: 24.58.130.24
Message-ID: <3cf837c6$1_1@dnews>
X-Trace: dnews 1022900166 24.58.130.24 (31 May 2002 19:56:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews