[Mono-bugs] [Bug 60111][Nor] New - Double.ToString() does not match MS.NET

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Jun 2004 12:56:41 -0400 (EDT)


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 gert.driesen@pandora.be.

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

--- shadow/60111	2004-06-12 12:56:41.000000000 -0400
+++ shadow/60111.tmp.7325	2004-06-12 12:56:41.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 60111
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Double.ToString() does not match MS.NET
+
+The Mono implementation of Double.ToString() (which equals format 
+specifier G) does not match that of MS.NET.
+
+Execute the following code :
+
+using System;
+using System.Globalization;
+
+public class EntryPoint
+{
+  public static void Main ()
+  {
+    Console.WriteLine (Math.E.ToString(CultureInfo.InvariantCulture));
+  }
+}
+
+On MS.NET you'll get :
+
+2.71828182845905
+
+While on Mono, you'll get :
+
+2.71828182845904