[Mono-bugs] [Bug 23959] New - Bug in Math.Floor

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Apr 2002 00:32:06 -0000


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 totte@labs2.com.

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

--- shadow/23959	Sat Apr 27 20:32:06 2002
+++ shadow/23959.tmp.10839	Sat Apr 27 20:32:06 2002
@@ -0,0 +1,24 @@
+Bug#: 23959
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: totte@labs2.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bug in Math.Floor
+
+Math.Floor return invalid result when used with negative numbers like
+
+Math.Floor(-2.8) should return -3 but returns -2 in our framework.
+
+This is due to the invalid usage of long to double functions, we should 
+use the os version of floor instead.