[Mono-bugs] [Bug 59425][Nor] Changed - Decimal formatting bug in MONO Beta 3
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 15 Jun 2004 09:38:04 -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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59425
--- shadow/59425 2004-06-15 01:16:56.000000000 -0400
+++ shadow/59425.tmp.9831 2004-06-15 09:38:04.000000000 -0400
@@ -1,17 +1,17 @@
Bug#: 59425
Product: Mono: Class Libraries
Version: unspecified
OS: Red Hat 9.0
OS Details:
-Status: REOPENED
+Status: NEW
Resolution:
Severity: 001 One hour
Priority: Normal
Component: System
-AssignedTo: mono-bugs@ximian.com
+AssignedTo: sebastien@ximian.com
ReportedBy: davidandrewtaylor@hotmail.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: Decimal formatting bug in MONO Beta 3
@@ -89,6 +89,37 @@
Also note that if I compile with MCS and then run the generated
assembly on MS.NET I get the correct "5.00" output. So this is
definately NOT a MCS compiler bug it is a library bug.
It would be good to get this fixed before we ship v1.0
+
+------- Additional Comments From sebastien@ximian.com 2004-06-15 09:38 -------
+Using the following code on both Mono and MS runtime (mcs or csc)
+return "5" when input is "5.00".
+
+using System;
+class T {
+ static void Main (string[] args) {
+ Double n = Double.Parse (args [0]);
+ Console.WriteLine ("Output is : " + n);
+ }
+}
+
+
+The same for the following code...
+
+using System;
+class T {
+ static void Main () {
+ Double n = Double.Parse ("5.00");
+ Console.WriteLine ("Output is : " + n);
+ }
+}
+
+
+then I guess that your last sample would too... until I noticed your
+original test case was using the Decimal type (not Double) ;-).
+
+Note: I fixed a lot of small issues in Decimal since beta2 (but
+probably not this one). If you are a big user of the class I would
+appreciate if you could run your code on the next beta (real soon now).