[Mono-bugs] [Bug 46175][Nor] New - incorrect formating of power of 10 floating point values
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 11 Jul 2003 16:02:33 -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 avd@openlinksw.com.
http://bugzilla.ximian.com/show_bug.cgi?id=46175
--- shadow/46175 Fri Jul 11 16:02:33 2003
+++ shadow/46175.tmp.28391 Fri Jul 11 16:02:33 2003
@@ -0,0 +1,51 @@
+Bug#: 46175
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: avd@openlinksw.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: incorrect formating of power of 10 floating point values
+
+Description of Problem:
+
+Big power of 10 floating point values like 1e+15, 1e+16, etc
+are formatted incorrectly.
+
+Steps to reproduce the problem:
+
+using System;
+
+public class Test
+{
+ public static void Main (string[] argv)
+ {
+ Console.WriteLine ("{0}", 1.0e+14);
+ Console.WriteLine ("{0}", 1.0e+15);
+ Console.WriteLine ("{0}", 1.0e+16);
+ Console.WriteLine ("{0}", 1.0e+17);
+ }
+}
+
+Actual Results:
+
+100000000000000
+1000000000000000
+0.E+15
+0.E+16
+
+Expected Results:
+
+100000000000000
+1.E+15
+1.E+16
+1.E+17