Module: IStats::Utils

Extended by:
Utils
Included in:
Utils
Defined in:
lib/iStats/utils.rb

Instance Method Summary collapse

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