[Zope] Money format

Tino Wildenhain tino@wildenhain.de
Fri, 25 May 2001 23:02:56 +0200


Hi Tommy,

--On Freitag, 25. Mai 2001 11:33 -0800 Tommy Johnson <tommy@7x.com> wrote:

> Het all,
>
> I'm looking for a string format function that formats a string (real
> numbers eg. 30.0 or 25.88) to a money format ($0.00)
>
> I would prefer to do this in DTML if possible.

actually, it is: <dtml-var your_ammount fmt="dollars-and-cents">
which is considered very ugly and I hope it will get deprecated
soon as possible ;)
However, in your case it is exacly what you want.

(I say I dont like it because I have the internationalisation in
mind. A world that not only consists of $ money ;)

Regards
Tino