[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 10:12:56 -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 jaak@zd.com.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=55008
--- shadow/55008 2004-03-28 09:01:44.000000000 -0500
+++ shadow/55008.tmp.17521 2004-03-28 10:12:56.000000000 -0500
@@ -81,6 +81,24 @@
FloatingPointFormatter.cs has some code like this:
[MonoTODO]
private string FormatReversible (Format formatData, double value,
NumberFormatInfo nfi, int precision)
I think that is the root of this problem.
+
+------- Additional Comments From jaak@zd.com.pl 2004-03-28 10:12 -------
+I don't think it's the problem you're talking about.
+I just ran my testcase again and got:
+
+s: 1.79769313486232E+308
+
+[mono@fw.home.lan ~]$ mono bug.exe
+s: 1.79769313486232E+308
+
+Unhandled Exception: System.OverflowException: Number overflow.
+in <0x00c71> System.Double:Parse
+(string,System.Globalization.NumberStyles,System.IFormatProvider)
+in <0x00015> System.Double:Parse (string,System.IFormatProvider)
+in <0x00076> C1:Main ()
+
+I must have missed the fist line in the original bug report.
+