Prevent average top up

Hello there,

I’m using a custom grading scale that goes from 1 to 5.
It works fine; the average calculation is correct based on the weights (75% | 20% | 5% respectively)

However the final calculation doesn’t show the average correctly. Is there any way to fix this?

I already “fixed” it temporarily by removing the decimal point; which then works fine. But I wonder if there’s any way to accomplish this keeping the decimal points.


If I understand correctly, you’re looking to prevent it from rounding the number? There isn’t a built-in way to adjust this, but you could edit the code in modules/Markbook/src/MarkbookView.php line 453 (in the getFormattedAverage method) to change the <code class="CodeInline">round($average, 0) to a round($average, 1)` as needed.