[Mono-bugs] [Bug 37744][Nor] New - Decimal.Round does not work properly

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 7 Feb 2003 20:29:15 -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=37744

--- shadow/37744	Fri Feb  7 20:29:14 2003
+++ shadow/37744.tmp.2355	Fri Feb  7 20:29:14 2003
@@ -0,0 +1,27 @@
+Bug#: 37744
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: yoros@wanadoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Decimal.Round does not work properly
+
+Decimal.Round() method does not do Bankers rounding. In the documentation
+and in MS.NET all rounds are done in bankers rounding. All you need to
+reproduce de error is to compile and run the following code in ms.net and
+in mono.
+
+          Console.WriteLine(Decimal.Round(3.45M,1));
+
+Running in mono, it prints "3.5" instead of "3.4" that is the bankers
+rounding of "3.45".