Round off all rating but ignore it if its null or 0.
Below is my code:
$star = $ratings->count() > 0 ? round($ratings->sum(\'rating\') / $ratings->coun