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. Thanks in advance, Tommy Not a Zope expert yet - but give me a few weeks! ;>
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
Try <dtml-var foo fmt="dollars-and-cents">. On Fri, May 25, 2001 at 11:33:57AM -0800, Tommy Johnson 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.
Thanks in advance, Tommy
Not a Zope expert yet - but give me a few weeks! ;>
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com Internet Programming http://www.mamey.com ------------------------------------------------------
participants (3)
-
andresï¼ corrada.com -
Tino Wildenhain -
Tommy Johnson