Module: IStats::Utils
Instance Method Summary collapse
-
#to_fahrenheit(temperature) ⇒ Object
Converts a temperature value in celcius to fahrenheit.
Instance Method Details
#to_fahrenheit(temperature) ⇒ Object
Converts a temperature value in celcius to fahrenheit.
Returns the temperature in fahrenheit.
8 9 10 |
# File 'lib/iStats/utils.rb', line 8 def to_fahrenheit(temperature) (temperature * (9.0 / 5.0)) + 32 end |