Jump to content

[SOLVED] Working out 10% of a number always increasing


killah

Recommended Posts

I need a math equation that will always work out 10% of a number that is ALWAYS increasing. I tried:

 

$number = 12;
echo (($number / 100) * 10);

 

But i have 2 equation's. One for supporters & one for non supporters. The supporters should get 10% while the non supporters should get 5% of $number which increases from time to time.

 

The ((12 / 100) * 10) works out to 1.2 then the ((12 / 100) * 5) work's out to 0.6, which both results into 8% as with my mysql query, it's updating. with 1 for both of them.

 

Is there anyway to either work out 10% or 5% out of 12 and increasing numbers?

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.