[Mono-bugs] [Bug 52076][Nor] New - Problems on double.ToString() and float.ToString()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 13 Jan 2004 15:30:58 -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 carlos@unixmexico.org.

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

--- shadow/52076	2004-01-13 15:30:58.000000000 -0500
+++ shadow/52076.tmp.5973	2004-01-13 15:30:58.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 52076
+Product: Mono/Class Libraries
+Version: unspecified
+OS: unknown
+OS Details: Slackware 9.1 kernel 2.4.22
+Status: ASSIGNED   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bk@slashdev.it               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problems on double.ToString() and float.ToString()
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Incorrect result string for ToString method of float and double where they
+have number with exponent
+
+Steps to reproduce the problem:
+Run this test
+using System;
+public class ToStringTest {
+	[STAThread] 
+	static void Main(){
+		float f = 3E+20F;
+		double d = 3E+20;
+		Console.WriteLine(f.ToString());
+		Console.WriteLine(d.ToString());
+	}
+}
+
+
+Actual Results:
+3.E+20
+3.E+20
+
+Expected Results:
+3E+20
+3E+20
+
+How often does this happen? 
+Always
+
+Additional Information:
+Mono JIT compiler version 0.29.99.20031211
+
+Massimo Prota