On Wed, 13 Nov 2013 18:32:52 -0700
Stuart A Johnston <s...@thecommune.net> wrote:

> Many different ways, of course.  Here's two:
> 
> http://www.template-toolkit.org/docs/manual/Filters.html#section_format_format_
> 
> https://metacpan.org/pod/Template::Plugin::Number::Format

And the format you'd want to use with those is '%.2f' for two decimal
places.


> On 11/13/2013 05:50 PM, Summer wrote:
> > I am doing normal division..
> >
> > ala
> >
> > 456.78 / 3
> >
> > and I am getting extended decimal places.. if I want to roundup to
> > the two decimal places..
> >
> > how can I accomplish this or is my only recourse to truncate/chomp?
> >
> >
> >
> > _______________________________________________
> > templates mailing list
> > templates@template-toolkit.org
> > http://mail.template-toolkit.org/mailman/listinfo/templates
> >
> 
> 
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates


-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to