Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 417837D08 for ; Thu, 14 Jul 2011 15:31:28 +0000 (UTC) Received: (qmail 48799 invoked by uid 500); 14 Jul 2011 15:31:27 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 48739 invoked by uid 500); 14 Jul 2011 15:31:27 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 48731 invoked by uid 99); 14 Jul 2011 15:31:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 15:31:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 15:31:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E0B0057CA6 for ; Thu, 14 Jul 2011 15:30:59 +0000 (UTC) Date: Thu, 14 Jul 2011 15:30:59 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: <1198195810.13853.1310657459917.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <146967322.7606.1310506379909.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MATH-617) "ComplexFormat" when the imaginary part is equal to "1" (as a formatted string) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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