зеркало из https://github.com/mono/mail-archives.git
117 строки
4.4 KiB
HTML
117 строки
4.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 77667][Nor] New - roundtrip formatting for double
|
|
i.e. Double.ToString ("R") returns incorrect result
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077667%5D%5BNor%5D%20New%20-%20roundtrip%20formatting%20for%20double%0A%09i.e.%20Double.ToString%20%28%22R%22%29%20returns%20incorrect%20result&In-Reply-To=bug-77667%40chernobyl.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="039610.html">
|
|
<LINK REL="Next" HREF="039612.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 77667][Nor] New - roundtrip formatting for double
|
|
i.e. Double.ToString ("R") returns incorrect result</H1>
|
|
<B>bugzilla-daemon at bugzilla.ximian.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077667%5D%5BNor%5D%20New%20-%20roundtrip%20formatting%20for%20double%0A%09i.e.%20Double.ToString%20%28%22R%22%29%20returns%20incorrect%20result&In-Reply-To=bug-77667%40chernobyl.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 77667][Nor] New - roundtrip formatting for double
|
|
i.e. Double.ToString ("R") returns incorrect result">bugzilla-daemon at bugzilla.ximian.com
|
|
</A><BR>
|
|
<I>Tue Feb 28 13:09:19 EST 2006</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="039610.html">[Mono-bugs] [Bug 77657][Nor] Changed - XmlSerializer exception when
|
|
serializing Double.MaxValue
|
|
</A></li>
|
|
<LI>Next message: <A HREF="039612.html">[Mono-bugs] [Bug 77657][Nor] Changed - XmlConvert.ToString(double)
|
|
should use roundtrip format
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#39611">[ date ]</a>
|
|
<a href="thread.html#39611">[ thread ]</a>
|
|
<a href="subject.html#39611">[ subject ]</a>
|
|
<a href="author.html#39611">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">atsushi at ximian.com.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=77667">http://bugzilla.ximian.com/show_bug.cgi?id=77667</A>
|
|
|
|
--- shadow/77667 2006-02-28 13:09:19.000000000 -0500
|
|
+++ shadow/77667.tmp.10079 2006-02-28 13:09:19.000000000 -0500
|
|
@@ -0,0 +1,43 @@
|
|
+Bug#: 77667
|
|
+Product: Mono: Class Libraries
|
|
+Version: 1.1
|
|
+OS:
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Normal
|
|
+Component: CORLIB
|
|
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">atsushi at ximian.com</A>
|
|
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+TargetMilestone: ---
|
|
+URL:
|
|
+Cc:
|
|
+Summary: roundtrip formatting for double i.e. Double.ToString ("R") returns incorrect result
|
|
+
|
|
+The following code results in an unexpected result:
|
|
+
|
|
+using System;
|
|
+
|
|
+class Test
|
|
+{
|
|
+ public static void Main ()
|
|
+ {
|
|
+ Console.WriteLine (10.78.ToString ("R",
|
|
+ System.Globalization.NumberFormatInfo.InvariantInfo));
|
|
+ }
|
|
+}
|
|
+
|
|
+
|
|
+Actual Results:
|
|
+
|
|
+10.779999999999999
|
|
+
|
|
+Expected Results:
|
|
+
|
|
+10.78
|
|
+
|
|
+How often does this happen?
|
|
+
|
|
+consistently.
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="039610.html">[Mono-bugs] [Bug 77657][Nor] Changed - XmlSerializer exception when
|
|
serializing Double.MaxValue
|
|
</A></li>
|
|
<LI>Next message: <A HREF="039612.html">[Mono-bugs] [Bug 77657][Nor] Changed - XmlConvert.ToString(double)
|
|
should use roundtrip format
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#39611">[ date ]</a>
|
|
<a href="thread.html#39611">[ thread ]</a>
|
|
<a href="subject.html#39611">[ subject ]</a>
|
|
<a href="author.html#39611">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|