>>>>> "Jason" == Jason Lewis <[EMAIL PROTECTED]> writes:

Jason> I have a variable, item.price, which contains the price of a product
Jason> to 4 decimal places. But I need to fix it to 2 decimal places for
Jason> output. should i write a filter to do that or is there some other way
Jason> that I have missed?

Is there any reason that FILTER format('%.4f') won't do that for you?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to