I have assigned a variable in my Smarty 2 template.
{assign var="real_count" value="{$store_summary|@count}"}
{$real_count = settype ($real_count, 'integer')}
My goal is to add on 65% to the value of $real_count
. With the data i'm working with I have a $real_count
of 3, so the calculated value should be 4.95 (3 + 1.95).
I am attempting to use the math
tag, however I am clearly missing something.
{math equation="x * y" x=$real_count y=0.65 format="%.2f"}