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

Reply via email to