Before letter_grade was evaluating something like .699999 as a D but then gets rounded it shows up at a 70, now .699999 gets rounded up to 70.0 and then gets evaluated to a C
Calculate student percent now returns (percent * 100).round(1)
Course.letter_grade and Enrollment.letter_grade(not sure this is used anywhere) now evaluates for whole numbers
Changed views everywhere Course.letter_grade is used to look something like this: <%= @percent = @student.calculate_percent(course) %>% <%= Course.letter_grade(@percent) %>
Instead of: (<%= ((@percent = ((@student.calculate_percent(@course)))) * 100).round(1)%>% <%= (Course.letter_grade(@percent)) %>)
(percent * 100).round(1)
Course.letter_grade
andEnrollment.letter_grade
(not sure this is used anywhere) now evaluates for whole numbersCourse.letter_grade
is used to look something like this:<%= @percent = @student.calculate_percent(course) %>% <%= Course.letter_grade(@percent) %>
Instead of:(<%= ((@percent = ((@student.calculate_percent(@course)))) * 100).round(1)%>% <%= (Course.letter_grade(@percent)) %>)