[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/31012] New: NumberFormat parse() fails to parse currency
From: |
colin dot green at focus-solutions dot co dot uk |
Subject: |
[Bug classpath/31012] New: NumberFormat parse() fails to parse currency strings |
Date: |
1 Mar 2007 17:13:48 -0000 |
E.g. When in the "en-GB" locale (The UK):
-------------------------------
Number Format nf = NumberFormat.getCurrencyInstance(); // For the default
locale.
// Sometimes necessary, but not relevant to the problem.
Currency currency = Currency.getInstance("GBP");
nf.setCurrency(currency);
// Format a string. This is ok.
String s = nf.format(1234.56); // Results in "£1234.56"
// Now parse the string.
Number num = nf.parse(s);
-------------------------------
It looks like some work has been done in this area because in 0.93 the result
is NaN. In 0.90 an exception is thrown.
--
Summary: NumberFormat parse() fails to parse currency strings
Product: classpath
Version: 0.93
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: colin dot green at focus-solutions dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31012
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/31012] New: NumberFormat parse() fails to parse currency strings,
colin dot green at focus-solutions dot co dot uk <=