[Mono-bugs] [Bug 48983][Nor] New - (int)double.NaN should == 0

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 27 Sep 2003 13:28:48 -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 bmaurer@users.sf.net.

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

--- shadow/48983	2003-09-27 13:28:48.000000000 -0400
+++ shadow/48983.tmp.12118	2003-09-27 13:28:48.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 48983
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: RedHat Linux 9
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: (int)double.NaN should == 0
+
+Description of Problem:
+On the MS runtime, (int)double.NaN gives 0.
+
+Steps to reproduce the problem:
+class t {
+	static void Main () {
+		System.Console.WriteLine ((int)double.NaN);
+	}
+}
+
+Actual Results:
+-2147483648
+
+Expected Results:
+0
+
+How often does this happen? 
+Always