[Mono-bugs] [Bug 70473][Wis] New - Jit problem with comparison on result from Math.Round

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Dec 2004 18:17:20 -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=70473

--- shadow/70473	2004-12-11 18:17:20.000000000 -0500
+++ shadow/70473.tmp.20469	2004-12-11 18:17:20.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 70473
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Jit problem with comparison on result from Math.Round
+
+[benm@omega benm]$ cat t.cs
+using System;
+ 
+class X {
+        static void Main ()
+        {
+                double d = -0.123456789;
+                double dd = Math.Round (d, 1);
+                if (dd != -0.1)
+                        Console.WriteLine ("{0} != {1}", dd, -0.1);
+        }
+}
+[benm@omega benm]$ mcs t.cs
+[benm@omega benm]$ mono t.exe
+-0.1 != -0.1
+[benm@omega benm]$ mint t.exe
+[benm@omega benm]$
+
+So am assuming this is a jit problem, as mint handles it