This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

locale pt_BR


Locale pt_BR groups through the property grouping?

I am trying to format one string using locale but I am not having
success with the property grouping.

>>>locale.setlocale(locale.LC_ALL, '')
'pt_BR.UTF-8'

>>>locale.format("%.2f", 12345678.1, True)
'12345678,10'

It would have:
'12.345.678,10'


I use Python and Linux/Ubuntu. 


Thanks.


-- 
Antonio Prado


--------------------------------------
Analista de Sistemas.
sÃtio: http://www.antonioprado.eti.br
email: suporte@antonioprado.eti.br
msn..: suporte@antonioprado.eti.br
skype: suporte_prado
--------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]