Re: locale, format monetary values

2006-04-18 Thread Rares Vernica
That's it. Thanks a lot! There is no example on the locale.format in the docs so I was confused. Regards, Ray deelan wrote: > Rares Vernica wrote: >> Hi, >> >> Can I use locale to format monetary values? If yes, how? If no, is >> there something I can use? >> >> E.g., >> I have 1 and I want

Re: locale, format monetary values

2006-04-17 Thread deelan
Rares Vernica wrote: > Hi, > > Can I use locale to format monetary values? If yes, how? If no, is there > something I can use? > > E.g., > I have 1 and I want to get "$10,000". try something like: >>> import locale >>> locale.setlocale(locale.LC_ALL, "en-US") 'English_United States.1252'

locale, format monetary values

2006-04-16 Thread Rares Vernica
Hi, Can I use locale to format monetary values? If yes, how? If no, is there something I can use? E.g., I have 1 and I want to get "$10,000". Thanks, Ray -- http://mail.python.org/mailman/listinfo/python-list