From f287b42cee2fbf2059f601f4ed6b54bb457670ee Mon Sep 17 00:00:00 2001 From: trobb Date: Sun, 18 Jan 2004 08:55:18 +0000 Subject: [PATCH] Error in percentage calculations for T/F items fixed (screen display only) --- mod/quiz/report/fullstat/report.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod/quiz/report/fullstat/report.php b/mod/quiz/report/fullstat/report.php index eb53de6c34..141f89a628 100755 --- a/mod/quiz/report/fullstat/report.php +++ b/mod/quiz/report/fullstat/report.php @@ -2,7 +2,8 @@ // created from the above 2003/11/20 by Tom Robb tom@robb.net // Version 2.2 Modified 2003/11/25 pm // Version 2.3 Modified 2004/01/17 -// Error in display of items followin a matching question fixed +// Version 2.4 Modified 2004/01/18 +// Error in percentage calculations for T/F items fixed /// This report shows the specific responses made by each student for each question. @@ -760,14 +761,14 @@ class quiz_report extends quiz_default_report { $nowstat = $analysis[1][$itemcount]; $colpos = strpos($nowstat,":"); $nowresp = substr($nowstat,$colpos+1); - $pct_cor = qr_make_pct($nowresp,$total_user_count) *100; + $pct_cor = qr_make_pct($nowresp,$total_user_count); print("$nowresp ($pct_cor%) "); print("True\n"); //"False" responses $nowstat = $analysis[2][$itemcount]; $colpos = strpos($nowstat,":"); $nowresp = substr($nowstat,$colpos+1); - $pct_cor = qr_make_pct($nowresp,$total_user_count) *100; + $pct_cor = qr_make_pct($nowresp,$total_user_count); print("$nowresp ($pct_cor%) "); print("False\n"); } -- 2.39.5