[PHP-WIN] Re: Finding a percentage

2006-05-31 Thread unwired brain
Hi, Does anyone know how to find the progress percentage (%) between one number to the next? For example: I have a minimal number of 0 I have a maximum number of 77 I have a current number of 9 Does anyone know how I may find the percentage of this number from the minimal number, to the maximum

RE: [PHP-WIN] Finding a percentage

2006-05-31 Thread John Harris
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) ) * 1

RE: [PHP-WIN] Finding a percentage

2006-05-31 Thread Luis Moreira
This is not exactly a PHP issue, it is straight math !!! Percent = value / (max - min) -Original Message- From: Daniel Anderson [mailto:[EMAIL PROTECTED] Sent: terça-feira, 30 de Maio de 2006 23:11 To: php-windows@lists.php.net Subject: [PHP-WIN] Finding a percentage Hi, Does anyone kn