[Mono-devel-list] Brazilian currency in Mono

Jurandy Martins Soares Junior jurandy at lsd.ic.unicamp.br
Tue Oct 5 15:10:07 EDT 2004


Hi,

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 euros".

Who do I have to report this bug to?

Thanks in advance!
Jurandy Martins



More information about the Mono-devel-list mailing list