note 26241 added to function.round
| From: | tichoux at charlevoix dot net | Date: | Wed, 23 Oct 2002 19:06:31 +0000 |
| Subject: | note 26241 added to function.round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38464@lists.php.net to get a copy of this message | ||
for a poll, if you want to have 100% and not 99 or 99.99 % you can do that :
round( number_format( (($individual_result*100)/$total_result), 2), 1)
--
http://www.php.net/manual/en/function.round.php
http://master.php.net/manage/user-notes.php?action=edit+26241
http://master.php.net/manage/user-notes.php?action=delete+26241
http://master.php.net/manage/user-notes.php?action=reject+26241