You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2011/07/13 18:38:59 UTC
[jira] [Commented] (MATH-617) "ComplexFormat" when the imaginary
part is equal to "1" (as a formatted string)
[ https://issues.apache.org/jira/browse/MATH-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064682#comment-13064682 ]
Phil Steitz commented on MATH-617:
----------------------------------
Testing for equality modulo configured number format precision, I assume? There may be a miniscule performance impact to do the test, but I don't think that should be a showstopper for toString and I agree the modified output looks nicer, so +1 for this change.
> "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