Re: [SMARTY] Decimal Round Off
| From: | Webdesign eLite | Date: | Fri, 17 Oct 2003 05:49:26 +0000 |
| Subject: | Re: [SMARTY] Decimal Round Off | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10368@lists.php.net to get a copy of this message | ||
Hi Mark,
this is not a php mailing list.
but take a look at the php manual, the commands printf, sprintf and round are useful.
Andreas Otterstein
---
PHP http://www.php.net
PEAR http://pear.php.net
Smarty http://smarty.php.net
eLite http://www.e-lite.at
Mark Milan P. Jagunap wrote:
Hi, How do you round of decimal numbers in php? Is there a function that do that automatically? Once I subtracted numbers with decimal values I got 759.99999999. I just need two decimal places. Thanks, Mark