[
https://issues.apache.org/jira/browse/MATH-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065324#comment-13065324
]
Gilles commented on MATH-617:
-----------------------------
I've committed the code in revision 1146755.
Please have a look; I have no idea of the use of "FieldPosition" in these
methods, so this change might screw up some possible usage (although all the
tests pass).
It might well be that your suggestion is less intrusive and faster too...
> "ComplexFormat" when the imaginary part is equal to "1" (as a formatted
> string)
> -------------------------------------------------------------------------------
>
> Key: MATH-617
> URL: https://issues.apache.org/jira/browse/MATH-617
> Project: Commons Math
> Issue Type: Improvement
> Reporter: Gilles
> Assignee: Gilles
> Priority: Trivial
> Fix For: 3.0
>
>
> Currently, for the instance
> {code}
> Complex(1, 1)
> {code}
> the "format" method in "ComplexFormat" outputs
> {noformat}
> 1 + 1i
> {noformat}
> Shall I modify the code so that it will output a nicer
> {noformat}
> 1 + i
> {noformat}
> instead?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira