これは私の質問です
$sum = "SELECT htno,
SUM(tm) AS tech,
SUM(tm)/7.5 AS divi,
SUM(credits) AS cred ,
SUM(CASE WHEN credits <= 0 THEN 1 ELSE 0 END) AS log,
SUM(CASE WHEN credits > 0 THEN 1 ELSE 0 END) AS pass,
SUM(CASE WHEN em >= 0 THEN 1 ELSE 0 END) AS atm,
SUM(CASE WHEN em >= -2 THEN 1 ELSE 0 END) AS tot
FROM jbit WHERE htno='$id'";
3 行目の 'SUM(tm)/7.5 As divi' クエリでは 79.2544555555 として出力されますが、79.25 として出力したい
友達を助けて