array( 'min' => -4.5 , 'max' => 16 ), 'afdcc2' => array( 'min' => 0 , 'max' => 5 ), 'afdcc1' => array( 'min' => -10 , 'max' => 10 ), 'scorez' => array( 'min' => -3 , 'max' => 3 ), 'indiscore100' => array( 'min' => 0 , 'max' => 100 ), 'indiscore20' => array( 'min' => 0 , 'max' => 20 ), ); $min = $bornes[$score]['min']; $max = $bornes[$score]['max']; $pct = round(($value-$min)*100/($max-$min)); if($pct<0) $pct = 0; if($pct>100) $pct = 100; $firephp->log($pct, 'pourcentage'); ?>