harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-484) Bugs in org.apache.harmony.text.tests.java.text.DecimalFormatTest
Date Wed, 24 May 2006 01:37:30 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-484?page=comments#action_12413049 ] 

Richard Liang commented on HARMONY-484:

Hello George,

Please refer to the spec of java.text.DecimalFormat about "Scientific Notation"
The number of significant digits in the mantissa is the sum of the minimum integer and maximum
fraction digits, and is unaffected by the maximum integer digits. For example, 12345 formatted
with "##0.##E0" is "12.3E3".

For pattern "##0.0E0": minimum integer digits = 1, and maximum fraction digits = 1
then the significant digits of this pattern is (minimum integer digits) + (maximum fraction
digits) = 2

So 123.0 should be formatted as "120E0" which means it's bug of RI.

Any comments? Thanks a lot.

Best regards,

> Bugs in org.apache.harmony.text.tests.java.text.DecimalFormatTest
> -----------------------------------------------------------------
>          Key: HARMONY-484
>          URL: http://issues.apache.org/jira/browse/HARMONY-484
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: text.make.diff, text.src.diff
> Hello,
> There are some bugs in this test. I will attache the patch soon. Thanks a lot. 
> Best regards,
> Richard

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message