https://bugzilla.novell.com/show_bug.cgi?id=383531
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=383531#c1 Robert Jordan <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] Summary|Double.Max / 2 = something different on Mono vs.|[REGRESSION] Double number formatter inacurrate |.NET |for certain mantissas --- Comment #1 from Robert Jordan <[EMAIL PROTECTED]> 2008-04-25 04:33:34 MST --- Only the string representation is different. Internally, the values are equal: using System; class Program { static void Main() { double expectedValue = 8.98846567431158E+307; double actualValue = Double.MaxValue / 2; Dump ("expectedValue", expectedValue); Dump ("actualValue", actualValue); Dump ("diff", Math.Abs (expectedValue - actualValue)); } static void Dump (string text, double d) { Console.Write ("{0}: {1}: ", text, d.ToString("G17")); byte [] bytes = BitConverter.GetBytes (d); for (int i = 0; i < bytes.Length; i++) Console.Write ("{0:000} ", bytes [i]); Console.WriteLine (); } } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
