[Zope] Probably too much to hope for but...
Goldthwaite, Joe
joe at goldthwaites.com
Thu Dec 4 13:15:32 EST 2003
Anyone know how to get a number rounded to a whole number and formatted with
commas between the thousands and parens around negative numbers?
In other words, how to get this; -1234567.55
To this: (1,234,568)
I can see in The Zope Book that you can use Python string formats like;
<p tal:content="python:'%0.0f' % item.YTDCurrent")
That rounds it to the nearest dollar but I can't find where to put the
parens and commas.
More information about the Zope
mailing list