SQL AVG() to 2 decimals
PHP Snippet 1:
$sql3 = "SELECT ROUND(AVG(app_tests.test_resultPercent),2) FROM app_tests";
PHP Snippet 2:
echo "<h3>".$row3[0];
PHP Snippet 3:
SELECT cast(ROUND(AVG(app_tests.test_resultPercent),2) as numeric(19,2))
PHP Snippet 4:
$sql3 = "SELECT ROUND(AVG(app_tests.test_resultPercent), 2) FROM app_tests";