Re: [SMARTY] problem displaying float
| From: | Max Schwanekamp | Date: | Fri, 17 Nov 2006 17:14:10 +0000 |
| Subject: | Re: [SMARTY] problem displaying float | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13581@lists.php.net to get a copy of this message | ||
George Pitcher wrote:
I do all my calculations in PHP and let Smarty handle the display - I thought that's what templates were all about.Exactly. Assign the value to the template object as a string, not as a float, and see what you get. Shouldn't matter, but at least then you'll get the value in a more-or-less literal form. There generally oughtn't be any need to using sprintf() in the template code. Also, do you have error_reporting set to at least E_ALL? -- Max Schwanekamp NeptuneWebworks.com 541-517-9064