php-windows Digest 1 Jun 2006 12:26:35 -0000 Issue 2974

Topics (messages 26941 through 26942):

Re: Finding a percentage
        26941 by: unwired brain

$BD>%"%I8r49$O#O#K$G$9$+!)(B
        26942 by: runa

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
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 number?

EXAMPLE:

The Mininimum Number is 0, the Maximum Number
is 50, the Current Number is 25. This would mean the
percentage of this would be 50%. It's that "progress"
output I'm looking to obtaining.

Unfortunately I cannot work with whole multiples of
ten (10, 50, 100), I am limited to erratic number placements.

This is very urgent, please, does anyone know a solution?

Many thanks!

Dan
Dan,

a quick solution could be:

long percent = [current value] / ([maximum value] - [minimum value]) * 100


Best regards
--
unwiredbrain

--- End Message ---
--- Begin Message ---
           運命の人との出会い
 ◆━━━━━━━━━━━━━━━━━━━━━━◆
   ここ最近、癒しを求める女性が急増しています。
   当サイトでは女性を癒して頂ける男性を募集しております。
   ★☆直アド・直電番号交換等で純粋な出会いを☆★
            是非一度ご覧下さい
       http://xbja.com/?bid19


      ※当サイトは完全無料登録制です※

 ◆━━━━━━━━━━━━━━━━━━━━━━◆

      refuse an [EMAIL PROTECTED]


 

--- End Message ---

Reply via email to