app/models/studentdb/student_transcript_course.rb
# Returns the grade earned in the course, properly formatted. Since the SDB stores grades as strings with no decimals, two digit
# grades must be converted into a decimal number, but strings such as "CR" for credit/no-credit classes must stay the same
Returns the grade earned in the course, properly formatted. Since the SDB stores grades as strings with no decimals, two digit
grades must be converted into a decimal number, but strings such as "CR" for credit/no-credit classes must stay the same
Returns the grade earned in the course properly formatted . Since the SDB stores grades as strings with no decimals two digit grades must be converted into a decimal number but strings such as " CR " for credit / no - credit classes must stay the same
def grade_formatted
    return "X" if grade.strip.blank?
    return "0.0" if grade == "00"
    return (grade.to_f/10).to_s unless grade.to_f == 0.0
    return grade
  end
def grade_formatted return "X" if grade . strip . blank? return "0.0" if grade == "00" return ( grade . to_f / 10 ) . to_s unless grade . to_f == 0.0 return grade end
Returns the grade earned in the course, properly formatted.
Returns the grade earned in the course properly formatted .