[Mono-bugs] [Bug 54983][Maj] New - NumberFormatInfo has no effects when formatting numbers...

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 28 Feb 2004 12:37:28 -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 giuseppe.greco@agamura.com.

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

--- shadow/54983	2004-02-28 12:37:28.000000000 -0500
+++ shadow/54983.tmp.22391	2004-02-28 12:37:28.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 54983
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Fedora 1.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: giuseppe.greco@agamura.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: NumberFormatInfo has no effects when formatting numbers...
+
+NumberFormatInfo has no effects when formatting numeric values
+which depend on the current culture.
+
+Steps to reproduce the problem:
+1. Write a small program like this:
+
+    using System;
+    using System.Globalization;
+
+    class MyClass
+    {
+      public static void Main()
+      {
+         NumberFormatInfo nfi = new NumberFormatInfo();
+         nfi.CurrencyDecimalDigits = 2;
+
+         double d = 70.50;
+         Console.WriteLine(d.ToString("N", nfi));
+      }
+    }
+
+2. Compile and execute it.
+
+Actual Results:
+The program displays 70.500000000000000.
+
+Expected Results:
+The program should display 70.50.
+
+How often does this happen? 
+Always.
+
+
+Additional Information:
+That works on M$ Windows.