[PHP] math - somethings wrong

2001-05-16 Thread Michael Roark
$percentage=(($target_score/($fleet_score+$total_score))*.4)*100; if ($percentage = 10) { $percentage='10'; $capped=$target_roids*($percentage/100); } else { $capped=$target_roids*($percentage/100); } } I get different results

Re: [PHP] math - somethings wrong

2001-05-16 Thread Nathan Cook
There are some comments below. I hope this will point you in the right direction. /* Yours :: $percentage=(($target_score/($fleet_score+$total_score))*.4)*100; */ /* From looking at the math you do on the calculator you may want to try this instead. */