Article View: borland.public.jbuilder.java.swing
Article #1311Re: decimal separator ',' or '.'
From: Lamjed
Date: Sat, 03 Jan 2004 08:26
Date: Sat, 03 Jan 2004 08:26
45 lines
2465 bytes
2465 bytes
hi, can you send me this function (if it's possible) thanks lamjed email : delete the (antispam_) antispam_lamjed@lineone.net "Serkan" <serkan@insaat.org> a οΏ½crit dans le message news: 3ff5f035@newsgroups.borland.com... > Hi > I am not sure if this is the thing you are asking but I also had a similar > problem while I was dealing with DecimalFormat. When I > format a number using decimal format it was formatted using the current > locale but when I tried to parse back the number as a number I > was getting a number format exception. > For ex: > if I format 1000000.2 > if thousands seperator is "." and decimal seperator is "," in the > current locale(eg: Turkish) formatted number becomes 1.000.000,2 and if I > try to parse this number back using Double.parseDouble it throws a > NumberFormatException > > this is non-sense in my oponion. If a library uses the locale when > formatting it should use the same locale when parsing back. So I wrote my > own number format functions, and all I can suggests you is that. > I would also like to learn if there is another way that I don't know. > Thanks for all > > > "Lamjed" <antispam_lamjed@lineone.net> wrote in message > news:3ff59168@newsgroups.borland.com... > > Please , > > I have a problem to change the decimal separator from ',' to '.' in a > > BigDecimal type . > > Can you help me to do so > > Thanks > > > > > > > > > >
Technical Details
Message-ID:
<3ff67d83@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3ff59168@newsgroups.borland.com> <3ff5f035@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,c8a77c3c06d158b1 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-01-03 00:39:09 PST From: "Lamjed" <antispam_lamjed@lineone.net> Newsgroups: borland.public.jbuilder.java.swing References: <3ff59168@newsgroups.borland.com> <3ff5f035@newsgroups.borland.com> Subject: Re: decimal separator ',' or '.' Date: Sat, 3 Jan 2004 09:26:04 +0100 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 NNTP-Posting-Host: 193.95.113.62 Message-ID: <3ff67d83@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073118595 193.95.113.62 (3 Jan 2004 00:29:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail