This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Setup & design » Using decimals in sum operator

Using decimals in sum operator

Using decimals in sum operator

Friday 11 July 2003 10:30:08 pm - 1 reply

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)}

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

Any suggestions?

Friday 11 July 2003 11:35:43 pm

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


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from