note 26241 modified in function.round by danbrown

From: Date: Sun, 17 May 2009 16:26:11 +0000
Subject: note 26241 modified in function.round by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154827@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 : <?php round( number_format( (($individual_result*100)/$total_result), 2), 1); ?> --was-- 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://php.net/manual/en/function.round.php

« previous php.notes (#154827) next »