[Mono-bugs] [Bug 70475][Nor] New - 51.ToString ("#.#E+000") gives wrong results
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Dec 2004 18:28:02 -0500 (EST)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=70475
--- shadow/70475 2004-12-11 18:28:02.000000000 -0500
+++ shadow/70475.tmp.20553 2004-12-11 18:28:02.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 70475
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: 51.ToString ("#.#E+000") gives wrong results
+
+[benm@omega benm]$ cat t.cs
+using System;
+
+class X {
+ static void Main ()
+ {
+ int x = 51;
+ string exp = "5.1E+001";
+ string res = x.ToString ("#.#E+000");
+
+ if (exp != res)
+ Console.WriteLine ("{0}, {1}, {2}", x, exp, res);
+
+ }
+}
+[benm@omega benm]$ mcs t.cs
+[benm@omega benm]$ mono t.exe
+51, 5.1E+001, 51.E+1
+
+On msft:
+
+C:\Inetpub\ftproot>t
+
+C:\Inetpub\ftproot>