public static function roundCollection(array $data, $precision = 2)
    {
        $output = array();

        foreach ($data as $key => $value){
            $output[$key] = round($value, $precision);
        }

        return $output;
    }
public static function roundCollection(array $data, $precision = 2)
    {
        $output = array();

        foreach ($data as $key => $value){
            $output[$key] = round($value, $precision);
        }

        return $output;
    }
public static function roundCollection ( array $ data , $ precision = 2 ) { $ output = array ( ) ; foreach ( $ data as $ key => $ value ) { $ output [ $ key ] = round ( $ value , $ precision ) ; } return $ output ; }
Rounds a collection

@param array $data
@param integer $precision
@return array
Rounds a collection