Re: [SMARTY] problem displaying float
| From: | Peggy Schatz | Date: | Fri, 17 Nov 2006 16:05:50 +0000 |
| Subject: | Re: [SMARTY] problem displaying float | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13575@lists.php.net to get a copy of this message | ||
Hi George,
maybe you did not assign $fee properly/at all...
There should be a line of code in your php-script like:
$smarty->assign('fee',$fee);
Within your template you then state {$fee} or as messju recommended {"%.2f"|sprintf:$fee}
The latter modifies a string to get the proper number of floating values (or however these are called)....
Hope that helps...
Peggy