[Mono-bugs] [Bug 56740][Min] New - Decimal value does not hold its digits
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 9 Apr 2004 03:25:13 -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 atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56740
--- shadow/56740 2004-04-09 03:25:13.000000000 -0400
+++ shadow/56740.tmp.17134 2004-04-09 03:25:13.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 56740
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: atsushi@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Decimal value does not hold its digits
+
+Description of Problem:
+
+Decimal does not hold the digits.
+
+Steps to reproduce the problem:
+
+The output from this program shows the difference:
+
+public class MyClass
+{
+ public static void Main()
+ {
+ decimal d = 250.0M;
+ System.Console.WriteLine (d);
+ }
+}
+
+Actual Results:
+$ mono dec.exe
+250
+
+Expected Results:
+$ ./dec.exe
+250.0
+
+How often does this happen?
+Always.
+
+Additional Information:
+
+This also happens when we compile it with mcs and run on MS.NET runtime (so
+the constant value already misses the digits information).
+
+Some of System.Data tests fail depending on this.