class Numeric # Converts the number to celsius assuming it is in fahrenheit # returns a Float def f_to_c (self.to_f - 32.0) / 9.0 * 5.0 end # Converts the number to fahrenheit assuming it is in celsius # returns a Float def c_to_f self.to_f * 9.0 / 5.0 + 32.0 end end