diff --git a/mod/hotpot/index.php b/mod/hotpot/index.php index ebba4e77915..8e0f49d0f10 100644 --- a/mod/hotpot/index.php +++ b/mod/hotpot/index.php @@ -359,7 +359,9 @@ // get best score if (is_numeric($totals[$hotpot->id]->maxscore)) { - $bestscore = $totals[$hotpot->id]->maxscore." / $hotpot->grade"; + $weighting = $hotpot->grade / 100; + $precision = hotpot_get_precision($hotpot); + $bestscore = round($totals[$hotpot->id]->maxscore * $weighting, $precision)." / $hotpot->grade"; } else { $bestscore = " "; }