RE: Finding a percentage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux