9 Jul
2004
9 Jul
'04
5:34 a.m.
hpinson@indepthl.com wrote:
Hi. How would I format a floating point number so that a comma appears between thousands in the HTML output?
Currently I am using C formatting in DTML:
fmt="%.2f" which outputs: 1999.00
What we would like is 1,999.00
<dtml-var number thousands_commas> See DocumentTemplate.DT_Var.py for a number of utility functions usable inside DTML. -- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za