[
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