[Zope] Formatting numbers with commas

Allen aschmidt@fredericksburg.com
Mon, 14 Oct 2002 19:44:44 -0400


<dtml-var totAmt fmt="dollars-and-cents"   thousands_commas>

----- Original Message -----
From: "Michael Guerrero" <mguerrero@tachyon.net>
To: <zope@zope.org>
Sent: Monday, October 14, 2002 7:10 PM
Subject: [Zope] Formatting numbers with commas


> All,
>
> I'm working on my first zope project.  This seems like something simple to
do but I could not find the answers.
>
> I want a numeric value with commas for readability.
>
> For example, I want to display 1234567.89 as 1,234,567.89
>
> Is there a format mask for this?
>
> I tried <dtml-var totAmt fmt="dollars-and-cents"> but this only put the
'$' at the beginning.  Is there a suitable 'C format string' for this?
>
> I have the zope bible but it did not have what I was looking for.
>
> Thanks.
>
> Mike
>
> _______________________________________________
> 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 )
>