4 Dec
2003
4 Dec
'03
6:15 p.m.
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.