From ba57e8a7a5f1a7c7545529b8799fffd452291fdf Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Thu, 15 Nov 2012 13:24:19 -0500 Subject: [PATCH] Fixed redunant rounding of final grade percent, which was causing floating point weirdness. --- lms/templates/courseware/progress_graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/courseware/progress_graph.js b/lms/templates/courseware/progress_graph.js index 12df25b0e6..189137ada3 100644 --- a/lms/templates/courseware/progress_graph.js +++ b/lms/templates/courseware/progress_graph.js @@ -90,7 +90,7 @@ $(function () { ticks += [ [overviewBarX, "Total"] ] tickIndex += 1 + sectionSpacer - totalScore = math.floor(grade_summary['percent'] * 100) / 100 #We floor it to the nearest percent, 80.9 won't show up like a 90 (an A) + totalScore = grade_summary['percent'] detail_tooltips['Dropped Scores'] = dropped_score_tooltips