[Mono-bugs] [Bug 35560][Wis] New - Decimal type does not exist

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
13 Dec 2002 08:42:14 -0000


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 ds98rito@thn.htu.se.

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

--- shadow/35560	Fri Dec 13 03:42:14 2002
+++ shadow/35560.tmp.8600	Fri Dec 13 03:42:14 2002
@@ -0,0 +1,60 @@
+Bug#: 35560
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: RH8
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ds98rito@thn.htu.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Decimal type does not exist
+
+Description of Problem:
+Run the following:
+
+class DecimalTest
+{
+  public static void Main()
+  {
+    decimal myDecimal = 1234.56789m;
+    System.Console.WriteLine("myDecimal using 10:f3 = {0, 10:f3}",
+      myDecimal);
+  }
+
+}
+
+
+
+Steps to reproduce the problem:
+1. mcs DecimalTest.cs
+2. mono Decimaltest.exe
+
+
+Actual Results:
+Unhandled Exception: System.FormatException: The specified format is invalid
+in <0x0006a> 00 System.DecimalFormatter:NumberToString
+(string,System.Globalization.NumberFormatInfo,System.Decimal)
+in <0x00050> 00 System.Decimal:ToString (string,System.IFormatProvider)
+in <0x00221> 00 System.String:Format (System.IFormatProvider,string,object[])
+in <0x0004e> 00 System.String:Format (string,object)
+in <0x00011> 00 System.IO.TextWriter:Write (string,object)
+in <0x0009e> 00 .DecimalTest:Main ()
+
+
+
+Expected Results:
+myDecimal using 10:f3 = 1234.568
+
+
+How often does this happen? 
+Always with mono/mcs 0.17
+
+
+/Richard