Some projects with all facts filled out add up to a project score of 99
I believe this is due to the project score function's FOR loop accumulating small rounding errors, because fact scores round to 2 decimal places but everything else rounds to 5. Hoisting the division by total_weight out of the for loop and making it a single, final line should fix this problem and is mathematically equivalent.
Some projects with all facts filled out add up to a project score of 99
I believe this is due to the project score function's FOR loop accumulating small rounding errors, because fact scores round to 2 decimal places but everything else rounds to 5. Hoisting the division by
total_weight
out of the for loop and making it a single, final line should fix this problem and is mathematically equivalent.