[Mono-bugs] [Bug 80275][Wis] Changed - ToString("C") doesn't take in account a negative number.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Dec 16 13:38:23 EST 2006
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=80275
--- shadow/80275 2006-12-16 10:56:39.000000000 -0500
+++ shadow/80275.tmp.19247 2006-12-16 13:38:23.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 80275
Product: Mono: Class Libraries
Version: 1.2
OS: unknown
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Wishlist
Component: CORLIB
AssignedTo: mono-bugs at ximian.com
ReportedBy: bugs at jsomers.eu
QAContact: mono-bugs at ximian.com
@@ -50,6 +50,20 @@
------- Additional Comments From bugs at jsomers.eu 2006-12-16 10:56 -------
Something I also just noticed when submitting the test case.
Shouldn't Decimal.Round(d, 1) display -1245.8 in stead of -1246.0 ?
+
+------- Additional Comments From gert.driesen at pandora.be 2006-12-16 13:38 -------
+Not if you first use Decimal.Floor ;-)
+
+Also, the result you get is expected if your locale is set to us
+english.
+
+To modify the default locale to nl-BE, use this:
+export LANG="nl_BE.ISO8859.1"
+
+Or explicitly modify it using this:
+Thread.CurrentThread.CurrentCulture = new CultureInfo ("nl-BE");
+
+Succes!
More information about the mono-bugs
mailing list