[Mono-bugs] [Bug 37749][Wis] New - About the double comparishon internals.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 8 Feb 2003 03:50:47 -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 yoros@wanadoo.es.

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

--- shadow/37749	Sat Feb  8 03:50:47 2003
+++ shadow/37749.tmp.2938	Sat Feb  8 03:50:47 2003
@@ -0,0 +1,34 @@
+Bug#: 37749
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: yoros@wanadoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: About the double comparishon internals.
+
+Comparing any double value with Double.NaN should always return false. In
+mono it works fine for the absolute comparators (<, >, ==) but it doesn't
+work right for the partial comparators (<=, >=).
+
+I attach a little test for this mistake. Running this test it shouldn't
+print any message on the console but in mono it prints the following:
+
+NAN <= NAN
+NAN >= NAN
+NAN <= 1.0
+NAN >= 1.0
+1.0 <= NAN
+1.0 >= NAN
+
+If anyone can help me to find out the file that has the implementation of
+the double comparators... email me: <yoros@wanadoo.es>