[Mono-bugs] [Bug 55008][Wis] Changed - Double.Parse cannot parse Double.MaxValue

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 28 Mar 2004 09:01:44 -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 hellas@163.com.


--- shadow/55008	2004-02-29 16:59:09.000000000 -0500
+++ shadow/55008.tmp.17245	2004-03-28 09:01:44.000000000 -0500
@@ -1,8 +1,8 @@
 Bug#: 55008
-Product: Mono/Class Libraries
+Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
 Status: NEW   
 Severity: Unknown
@@ -68,6 +68,19 @@
 #ifdef IBM
 #ifdef Sudden_Underflow
 #ifdef IEEE_Arith
 #ifndef Inaccurate_Divide
+------- Additional Comments From hellas@163.com  2004-03-28 09:01 -------
+This problem is caused by Double.ToString().
+When we call Double.MaxValue.ToString("R",
+CultureInfo.InvariantCulture), the result should be 17 bits precision,
+but mono only get 15 bits precision.
+FloatingPointFormatter.cs has some code like this:
+private string FormatReversible (Format formatData, double value,
+NumberFormatInfo nfi, int precision) 
+I think that is the root of this problem.