[Mono-bugs] [Bug 23354] Changed - Decimal.ToString() handles format "g4" incorrectly

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
25 Apr 2002 14:11:11 -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 gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=23354

--- shadow/23354	Tue Apr 16 05:28:37 2002
+++ shadow/23354.tmp.8400	Thu Apr 25 10:11:11 2002
@@ -49,6 +49,17 @@
 ------- Additional Comments From ndrochak@gol.com  2002-04-16 05:28 -------
 -120000m.ToString("g4") and
 -120000m.ToString("g5")
 
 also incorrectly put the zero's on the end when it should use 
 scientific notation.
+
+------- Additional Comments From gonzalo@ximian.com  2002-04-25 10:11 -------
+Now it seems to work... May be is something related to the incorrect
+empty string returned when passed a "0" in DecimalFormatter?
+
+~/work/tests $ ./bug23345.exe
+1,2e+04
+~/work/tests $ mono ./bug23345.exe
+1.2e+04
+RESULT: 0
+