Hi Gilles,

Le 13/07/2011 11:57, Gilles (JIRA) a écrit :

     [ 
https://issues.apache.org/jira/browse/MATH-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064460#comment-13064460
 ]

Gilles commented on MATH-614:
-----------------------------

Above code added in revision 1145932.
Is there a case against that implementation?

I'm not sure I understand well.
Shouldn't the toString method be based on some default configuration of ComplexFormat and most importantly be such that it can be parsed back using ComplexFormat ?

I fear that the current implementation can be written but not read. ComplexFormat takes care to be able to do both.

Luc



"toString" method for "Complex"
-------------------------------

                 Key: MATH-614
                 URL: https://issues.apache.org/jira/browse/MATH-614
             Project: Commons Math
          Issue Type: Wish
            Reporter: Gilles
            Assignee: Gilles
            Priority: Trivial
             Fix For: 3.0

         Attachments: math.patch


Class "Complex" (in package "complex") lacks a "toString()" method.
[Request from Arne Ploese on the "dev" ML.]
I also propose to slightly modify the "format" method in "ComplexFormat" so that the stringified version of 
"Complex(1, 1)" is "1 + i" instead of "1 + 1i".

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



Reply via email to