[Python-de] Vorstellung und kleine Frage
Fritz Cizmaorv
fritz at sol.at
Fri Nov 22 17:59:25 EST 2002
Klinger Christian schrieb:
>Hallo Liste
>
>Mein Name ist Christian Klinger
>ich bin vor einiger Zeit über Python Zope gestolpert
>und bin ziemlich angetan von diesen möglichkeiten
>
>aber nun eine kleine Frage
>
>wie kann ich eine Float Variable in ein Währungsformat konvertieren???
>
>a=2.2
>b=a(XXXXX) ????Vielleicht!!!!????
>b
>2,20 EUR
>
>mfg christian
>
>
>_______________________________________________
>Python-de maillist - Python-de at starship.python.net
>http://starship.python.net/mailman/listinfo/python-de
>
>
>
Hi christian,
>>> a=2.2
>>> b=("%01.02f EUR" %a).replace(".",",")
>>> b
'2,20 EUR'
Gruß
Fritz
More information about the Python-de
mailing list