...

/

Solution: Convert Fahrenheit to Celsius

Solution: Convert Fahrenheit to Celsius

Go over the implementation for converting temperature in Fahrenheit to Celsius.

We'll cover the following...

Solution

Press + to interact
fahrenheit = input.to_f
celsius = (fahrenheit - 32) * 5 / 9.0
output = celsius.round(2)

Explanation

  • Line 2: The conversion formula is applied with a ...