[Mono-devel-list] Brazilian currency in Mono

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Oct 5 15:44:13 EDT 2004


On Tue, 2004-10-05 at 21:10, Jurandy Martins Soares Junior wrote:
> 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?

http://bugzilla.ximian.com/

Read http://www.mono-project.com/using/bugs.html first.

-Gonzalo





More information about the Mono-devel-list mailing list