fahrenheitToCelsius
Converts Fahrenheit to Celsius.
Follows the conversion formula C = (F - 32) * 5/9
.
typescript
const fahrenheitToCelsius = (degrees: number) => ((degrees - 32) * 5) / 9;
typescript
fahrenheitToCelsius(32); // 0
Converts Fahrenheit to Celsius.
Follows the conversion formula C = (F - 32) * 5/9
.
const fahrenheitToCelsius = (degrees: number) => ((degrees - 32) * 5) / 9;
fahrenheitToCelsius(32); // 0