Please I have to made a small calculus using mysqli and php, and to return a float or a double value, so I've tried :
$notes = mysclass_sql::query("SELECT SUM(commentsNote) / COUNT(*) as c
FROM comments ")->fetch_object()->c;
return round( $notes , 2) ;
But this returns me a value like this 1,25
and not 1.25
even if I try using str_replace !!
I can't get out from this, please masters any help ?