I just noticed something when using different strings for total rating. I have now 2 reviews, one with result 9 and one with 5.3 (I devided results by 10).
If I echo
<?php echo ($item->votes_result)/10;?>
it gives 7,1 as a result. If I echo
<?php echo $rating['total']/10 ?>
it gives 7,2 a result. Actual result is 7,15.
I would just like to know which way is more proper to use? Thanks.
I just noticed something when using different strings for total rating. I have now 2 reviews, one with result 9 and one with 5.3 (I devided results by 10).
If I echo
it gives 7,1 as a result. If I echo
it gives 7,2 a result. Actual result is 7,15.
I would just like to know which way is more proper to use? Thanks.