You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2011/07/19 15:31:58 UTC

[jira] [Created] (MATH-622) Default number format does not show enough digits

Default number format does not show enough digits
-------------------------------------------------

                 Key: MATH-622
                 URL: https://issues.apache.org/jira/browse/MATH-622
             Project: Commons Math
          Issue Type: Improvement
            Reporter: Gilles
            Priority: Minor
             Fix For: 3.0


In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
{code}
  nf.setMaximumFractionDigits(2);
{code}

This default is too small.
Also, it would be better to output the number in scientific notation.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MATH-622) Default number format does not show enough digits

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424530#comment-13424530 ] 

Gilles commented on MATH-622:
-----------------------------

Change implemented in r1366821.
                
> Default number format does not show enough digits
> -------------------------------------------------
>
>                 Key: MATH-622
>                 URL: https://issues.apache.org/jira/browse/MATH-622
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.1
>
>
> In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
> {code}
>   nf.setMaximumFractionDigits(2);
> {code}
> This default is too small.
> Also, it would be better to output the number in scientific notation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MATH-622) Default number format does not show enough digits

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067776#comment-13067776 ] 

Gilles commented on MATH-622:
-----------------------------

Too many tests depend on the default being 2 fractional digits... Reverted in revision 1148385.

Where to go from here?


> Default number format does not show enough digits
> -------------------------------------------------
>
>                 Key: MATH-622
>                 URL: https://issues.apache.org/jira/browse/MATH-622
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
> {code}
>   nf.setMaximumFractionDigits(2);
> {code}
> This default is too small.
> Also, it would be better to output the number in scientific notation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MATH-622) Default number format does not show enough digits

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067720#comment-13067720 ] 

Gilles commented on MATH-622:
-----------------------------

Increased maximum to "8" in revision 1148312.


> Default number format does not show enough digits
> -------------------------------------------------
>
>                 Key: MATH-622
>                 URL: https://issues.apache.org/jira/browse/MATH-622
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
> {code}
>   nf.setMaximumFractionDigits(2);
> {code}
> This default is too small.
> Also, it would be better to output the number in scientific notation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MATH-622) Default number format does not show enough digits

Posted by "Gilles (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles resolved MATH-622.
-------------------------

    Resolution: Fixed

Default number of fractional digits is now 10.

                
> Default number format does not show enough digits
> -------------------------------------------------
>
>                 Key: MATH-622
>                 URL: https://issues.apache.org/jira/browse/MATH-622
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.1
>
>
> In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
> {code}
>   nf.setMaximumFractionDigits(2);
> {code}
> This default is too small.
> Also, it would be better to output the number in scientific notation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MATH-622) Default number format does not show enough digits

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067725#comment-13067725 ] 

Gilles commented on MATH-622:
-----------------------------

The "scientific notation" feature is not obvious to achieve because {{CompositeFormat}} uses the {{java.text.NumberFormat}} class. Scientific notation is accessible through the
{{java.text.DecimalFormat}} class but it would not be with the same construct (there is no {{getInstance}} method in {{DecimalFormat}}). One has to use a pattern, thus explicitly create a {{DecimalFormat}} instance.


> Default number format does not show enough digits
> -------------------------------------------------
>
>                 Key: MATH-622
>                 URL: https://issues.apache.org/jira/browse/MATH-622
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
> {code}
>   nf.setMaximumFractionDigits(2);
> {code}
> This default is too small.
> Also, it would be better to output the number in scientific notation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MATH-622) Default number format does not show enough digits

Posted by "Gilles (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles updated MATH-622:
------------------------

    Fix Version/s:     (was: 3.0)
                   3.1

This is annoying but not a blocking issue; postponing.

                
> Default number format does not show enough digits
> -------------------------------------------------
>
>                 Key: MATH-622
>                 URL: https://issues.apache.org/jira/browse/MATH-622
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.1
>
>
> In {{CompositeFormat}}, the {{getDefaultNumberFormat(final Locale locale)}} method contains
> {code}
>   nf.setMaximumFractionDigits(2);
> {code}
> This default is too small.
> Also, it would be better to output the number in scientific notation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira