[Mono-bugs] [Bug 61431][Nor] New - Double data type - overflow in PPC
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jul 2004 08:51:23 -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 aravinthan.ekambaram@honeywell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61431
--- shadow/61431 2004-07-12 08:51:23.000000000 -0400
+++ shadow/61431.tmp.23595 2004-07-12 08:51:23.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 61431
+Product: Mono: Runtime
+Version: unspecified
+OS: other
+OS Details: proprietary
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: lupus@ximian.com
+ReportedBy: aravinthan.ekambaram@honeywell.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: Double data type - overflow in PPC
+
+Description of Problem:
+
+The operation of on a double data type overflows on the PPC machine, for a
+particular value. But the same double value, on the x86/windows machine
+there is no overflow.
+
+Consider the following code segment.
+
+ static void Main(string[] args)
+ {
+ long L1 = 632252206664834420;
+
+ double D1 = (double)L1/10000.0;
+
+ Console.WriteLine(D1);
+ }
+
+For this piece of code, on the PPC target I get the value zero, but at the
+same time on x86/Windows I get the value 63225220666483.
+
+
+Steps to reproduce the problem:
+1. Run the example code given above on both x86 and Windows machine.
+2.
+3.
+
+Actual Results:
+ On PPC target, zero.
+
+Expected Results:
+ 63225220666483
+
+How often does this happen?
+ everytime
+
+Additional Information:
+ Nothing