note 58313 rejected from function.round by mazzanet

From: Date: Mon, 31 Oct 2005 20:05:16 +0000
Subject: note 58313 rejected from function.round by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97890@lists.php.net to get a copy of this message
Note Submitter: richduncan at insecureinc dot com ---- I've been writing a poll script and using round() to round my percentages to the nearest integer. $percentage_a = round($poll['option1'] / $poll['total']*100, 0); This works fine when the script is standalone but when I implement it into my website http://www.insecureinc.com it shows the percentage values with all the numbers after the decimal point. Goto my site and cast a vote to see what i mean. Does anyone have any idea what could be causing this without me posting all my code for my site template ;)

« previous php.notes (#97890) next »