[Mono-bugs] [Bug 25692] New - values being rounded by the runtime?
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
3 Jun 2002 15:11:53 -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 ndrochak@gol.com.
http://bugzilla.ximian.com/show_bug.cgi?id=25692
--- shadow/25692 Mon Jun 3 11:11:53 2002
+++ shadow/25692.tmp.23826 Mon Jun 3 11:11:53 2002
@@ -0,0 +1,55 @@
+Bug#: 25692
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 7.2
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ndrochak@gol.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: values being rounded by the runtime?
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+Parameter value (or cast, I'm not sure) is not being sent to method
+correctly.
+
+Steps to reproduce the problem:
+using System;
+
+class Class1 {
+ static int Main(string[] args)
+ {
+ decimal value = (decimal)long.MaxValue;
+ value += 1;
+ try {
+ long l = Convert.ToInt64((double)value);
+ } catch (Exception) {
+ return 0;
+ }
+ return 1;
+ }
+}
+
+Actual Results:
+Returns 1
+
+Expected Results:
+Return 0 (i.e. ToInt64() should throw)
+
+How often does this happen?
+
+Every darn time.
+
+Additional Information:
+
+Class lib is pretty straight forward, but it might be there. However,
+I'm guessing runtime.