lib/tsuno/course.rb
# Converts grade to the 4.0 scale
# @return [Float] The grade in 4.0 form
Converts grade to the 4.0 scale
Converts grade to the 4 . 0 scale
def as_4_scale
      case grade.round(2)
      when 0.90..1.00
        4.0
      when 0.85..0.89
        3.8
      when 0.80..0.84
        3.6
      when 0.77..0.79
        3.3
      end
    end
def as_4_scale case grade . round ( 2 ) when 0.90 .. 1.00 4.0 when 0.85 .. 0.89 3.8 when 0.80 .. 0.84 3.6 when 0.77 .. 0.79 3.3 end end
Converts grade to the 4.0 scale
Converts grade to the 4 . 0 scale
The grade in 4.0 form
The grade in 4 . 0 form
Float