PHP runden alle Werte in Array um
$numbers = array(1.24152,4.34536,6.436377);
//round all numbers to 3rd decimal place
$numbersRounded=array_map(function($v){return round($v,3);}, $numbers);
Friendly Hawk