[Mono-bugs] [Bug 71287][Nor] New - Decimal division fails in some cases.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 17:39:06 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71287
--- shadow/71287 2005-01-14 17:39:06.000000000 -0500
+++ shadow/71287.tmp.12451 2005-01-14 17:39:06.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 71287
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Decimal division fails in some cases.
+
+The following program was extracted from the NUnit regression tests,
+and it fails:
+
+using System;
+
+class X {
+ static void Main ()
+ {
+ Decimal d1=79228162514264337593543950335m;
+ Decimal d2=10;
+ Decimal res = Decimal.Divide (d1, d2);
+ if (res != 7922816251426433759354395034m)
+ Console.WriteLine ("Failed");
+ else
+ Console.WriteLine ("Success");
+ }
+}
+
+The program works fine on MS.NET (compiled with mcs and csc)