[Mono-bugs] [Bug 80275][Wis] New - 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 10:51:15 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 bugs at jsomers.eu.

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

--- shadow/80275	2006-12-16 10:51:15.000000000 -0500
+++ shadow/80275.tmp.16223	2006-12-16 10:51:15.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 80275
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bugs at jsomers.eu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ToString("C") doesn't take in account a negative number.
+
+Description of Problem:
+I was trying to implement the Decimal.Round(Decimal d) functionality since
+it missing, and I think I stumbled upon a bug when doing a ToString("C").
+
+
+Steps to reproduce the problem:
+Run the attached code.
+
+Actual Results:
+TOTAL  : ($1,245.80) in piggy bank
+ROUND 2: -1246.0
+
+
+Expected Results:
+
+TOTAL  : ($-1,245.80) in piggy bank
+ROUND 2: -1246.0
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+I also have a question about the CurrencyFormat. In this example it
+display's the $ sign, can this be because my language settings are set to
+English (US)?
+I live in Belgium, our currency is the Euro (€).


More information about the mono-bugs mailing list