[Mono-bugs] [Bug 23354] New - Decimal.ToString() handles format "g4" incorrectly
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
12 Apr 2002 15:24:25 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by ndrochak@gol.com.
http://bugzilla.ximian.com/show_bug.cgi?id=23354
--- shadow/23354 Fri Apr 12 11:24:25 2002
+++ shadow/23354.tmp.31664 Fri Apr 12 11:24:25 2002
@@ -0,0 +1,27 @@
+Bug#: 23354
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ndrochak@gol.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Decimal.ToString() handles format "g4" incorrectly
+
+Unit tests reveals that
+
+Decimal d;
+d = 12000m;
+string s = d.ToString("g4", NumberFormatInfo.InvariantInfo);
+
+Incorrectly puts "-1.200e+4" into s, when it should put "1.2e+04"
+
+Notice the extra zero's in the incorrect string.