Sha256: 08d307d69dd65bec243e812062c3430e3b8e3e5b18a6296a43d3d27fe6af2d46

Contents?: true

Size: 220 Bytes

Versions: 10

Compression:

Stored size: 220 Bytes

Contents

=begin rdoc
  
Fahrenheit to Celsius conversion.

=end

=begin rdoc
  Convert the temperature +f+ (in degrees Fahrenheit) into the equivalent
  temperature in degrees Celsius.
=end

def celsius(f)
  (f - 32) * 5 / 9
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubylabs-0.7.5 lib/introlab.rb
rubylabs-0.7.4 lib/introlab.rb
rubylabs-0.7.3 lib/introlab.rb
rubylabs-0.7.2 lib/introlab.rb
rubylabs-0.7.1 lib/introlab.rb
rubylabs-0.7.0 lib/introlab.rb
rubylabs-0.6.4 lib/introlab.rb
rubylabs-0.6.2 lib/introlab.rb
rubylabs-0.5.5 lib/introlab.rb
rubylabs-0.5.4 lib/introlab.rb