Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-614

"toString" method for "Complex"

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      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".

        Attachments

        1. math.patch
          0.8 kB
          Hasan Diwan

          Issue Links

            Activity

              People

              • Assignee:
                erans Gilles Sadowski
                Reporter:
                erans Gilles Sadowski
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: