<?php
//29783 Innistrad Champion of the Parish 2.75 3.17 0 2.22 5 2.54 6
function _AVG($args){
/*$count = func_num_args();
$args = func_get_args();*/
$count = count($args);
$sum = array_sum($args);
return bcdiv($sum,$count,2);
}
$avg = _AVG(array(3.17,2.22,2.54));
$addmtg = bcadd($avg,3.17,2);
$mul95 = bcmul($addmtg,0.95,2);
$div2 = bcdiv($mul95,2,2);
echo $div2;
preferences:
63.75 ms | 402 KiB | 5 Q