[Mono-bugs] [Bug 52927][Wis] New - too many decimals in currency formated doubles

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 16 Jan 2004 04:15:40 -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 jackson@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52927

--- shadow/52927	2004-01-16 04:15:40.000000000 -0500
+++ shadow/52927.tmp.7919	2004-01-16 04:15:40.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 52927
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jackson@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: too many decimals in currency formated doubles
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When formatting doubles to currency too many decimal places are shown. For
+my culture there should only be two.
+
+
+Steps to reproduce the problem:
+1. Compile following program:
+
+public class T {
+
+        public static void Main ()
+        {
+                System.Console.WriteLine (String.Format ("{0:C}", 0.0));
+        }
+}
+
+2. Run
+3. 
+
+Actual Results:
+$0.000000000000000
+
+Expected Results:
+$0.00
+
+
+Additional Information:
+my LANG is en_US.UTF-8