converting currency using locals

Grzegorz Ślusarek gregtech at wp.pl
Wed Apr 18 14:08:24 EDT 2007


Hi all. I have situation that I have value that holds price and I must show
this price using national specification(e.g. thousands_sep). Any idea how
this can be done under python 2.4.4? I saw that function format from module
locals can format value with national specification, but this could be done
only in python 2.5. Any solution for 2.4?
example what I want achieve:
value 24500.50
Hungarian Price 24 500.50
Romaniam Price 24.500.50
Thanks for any help
Gregor



More information about the Python-list mailing list