Re: rounding to two decimals, how in template toolkit?
Stuart A Johnston <[email protected]> Wed, 13 Nov 2013 18:32:52 -0700
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
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 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 > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates >