RE: [PHP-WIN] Finding a percentage

From: Date: Wed, 31 May 2006 14:17:03 +0000
Subject: RE: [PHP-WIN] Finding a percentage
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-26940@lists.php.net to get a copy of this message
On 31 May 2006 at 9:09, Luis Moreira wrote: > This is not exactly a PHP issue, it is straight math !!! > > Percent = value / (max - min) Don't forget to range the value (if unlike the original question, the minimum is not zero) and multiply by 100. Percent = ( (value - min) / (max - min) ) * 100

« previous php.windows (#26940) next »