[Mono-bugs] [Bug 73034][Nor] New - decimal custom formatting fails
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 25 Feb 2005 11:04:45 -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 s.rave@ccv.nl.
http://bugzilla.ximian.com/show_bug.cgi?id=73034
--- shadow/73034 2005-02-25 11:04:45.000000000 -0500
+++ shadow/73034.tmp.31512 2005-02-25 11:04:45.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 73034
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: s.rave@ccv.nl
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: decimal custom formatting fails
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Custom formating doen't work with decimal values
+
+
+Steps to reproduce the problem:
+ Console.WriteLine(1.23m.ToString("0.00",
+System.Globalization.CultureInfo.InvariantCulture));
+
+
+Actual Results:
+System.FormatException: The specified format is invalid
+in <0x003d6> System.DecimalFormatter:NumberToString
+(string,System.Globalization.NumberFormatInfo,System.Decimal)
+in <0x0006f> System.Decimal:ToString (string,System.IFormatProvider)
+in <0x00070> ClassTest:Main (string[])
+
+
+Expected Results:
+1.23
+
+How often does this happen?
+Always Mono 1.1.4
+
+Additional Information:
+For double values the same test works