| 
 Posted by Michael Pichler on 04/05/06 12:23 
Chris H schrieb: 
[...] 
> in other words what is the correct format for this type of equation. 
>  
> $prize_pool = "5000"; 
> $total_points = 70% of $prize_pool 
>  
 
I'm not sure if I understood your problem. 
 
<? 
$total_points = (int) $prize_pool * 0.7; 
// if needed 
$total_points = round($total_points); 
?> 
 
Can it be that simple? 
 
Michael
 
  
Navigation:
[Reply to this message] 
 |