Number Formatting with a Comma
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 Thanks in advance! Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
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
participants (2)
-
hpinson@indepthl.com -
Roché Compaan