[Zope] Formatting numbers with commas

Schmidt, Allen J. aschmidt@nvcc.edu
Tue, 15 Oct 2002 12:37:09 -0400


I have not seen anything dealing with euros...others may have some idea.
Keep the discussions on the list - then others can benefit and also offer
other suggestions and answers.

Allen

-----Original Message-----
From: Michael Guerrero [mailto:mguerrero@tachyon.net]
Sent: Tuesday, October 15, 2002 12:26 PM
To: Allen
Subject: RE: [Zope] Formatting numbers with commas


It works like a charm.

Thanks.

By the way,  since there is a dollars-and-cents format mask, do you know
if there is a euros-and-cents format mask?

Thanks again.

Mike

-----Original Message-----
From: Allen [mailto:aschmidt@fredericksburg.com]
Sent: Monday, October 14, 2002 4:45 PM
To: Michael Guerrero
Cc: zope@zope.org
Subject: Re: [Zope] Formatting numbers with commas


<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 )
>