Forums / Setup & design / Using decimals in sum operator

Using decimals in sum operator

Author Message

Lance Leger

Friday 11 July 2003 1:30:08 pm

I'm having trouble using decimals in the sum operator.

{let scat_h=2.5 scat_c=0}
{set scat_c=sum($scat_h,.5)}
{$scat_c}
{/let}

This returns nothing, however, if I change .5 to 5 the
page returns 7.5.

Any suggestions?

Jan Borsodi

Friday 11 July 2003 2:35:43 pm

Try writing .5 as 0.5 , I don't the template engine recognizes .n notations.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq