[Mono-devel-list] Brazilian currency in Mono

Belbin, Peter PBelbin at McLeodUSA.com
Tue Oct 5 17:20:31 EDT 2004

I think you should be very careful printing Brazilian currency, as it has a
very bad impact due to the increase of inflation.


-----Original Message-----
From: Jurandy Martins Soares Junior [mailto:jurandy at lsd.ic.unicamp.br] 
Sent: Tuesday, October 05, 2004 2:10 PM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-devel-list] Brazilian currency in Mono


I've tried to make Mono print a >>double<< as currency, using the format of
my country. See code below:

      double total = 7.50;
      IFormatProvider formato = new CultureInfo("pt-br", true);
      msg.Text = String.Format("{0:c}", total);

It prints "R$8" rather than "R$7,50". 
It rounds the value. In brazilian portuguese comma is the separator.

I've tried to replace "pt-br" by "fr-fr". It worked well, printing "7,50

Who do I have to report this bug to?

Thanks in advance!
Jurandy Martins
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com

NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named.  Any use, copying
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20041005/2b598965/attachment.html 

More information about the Mono-devel-list mailing list