[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22694] DecimalFormat misbehaviour
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22694] DecimalFormat misbehaviour |
Date: |
16 Oct 2005 01:26:36 -0000 |
* According to sun's spec, exponential format may have a fractional part.
* Minimum/Maximum digits function must update maximum/minimum fields
accordingly. As this is done by super delegate the work to it.
This patch fixes this two issues.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2003-09-07
12:54 -------
I created two new Mauve tests.
gnu/testlet/java/text/DecimalFormat/digits.java
Which shows that the Minimum/Maximum digits function weren't functioning
correctly.
gnu/testlet/java/text/DecimalFormat/formatExp.java
Which tests some exponentional formats (and shows some errors even with this
patch).
------- Comment #2 from from-classpath at savannah dot gnu dot org 2003-09-09
21:19 -------
Applied as:
2003-09-09 Guilhem Lavaux <address@hidden>
* java/text/DecimalFormat.java (format): Don't immediatly round
baseNumber to long.
(setMinimumIntegerDigits): Call super.
(setMinimumFractionDigits): Likewise.
(setMaximumIntegerDigits): Likewise.
(setMaximumFractionDigits): Likewise.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22694
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22694] DecimalFormat misbehaviour,
gcc-bugzilla at gcc dot gnu dot org <=