Converts Fahrenheit to Celsius.
Follows the conversion formula C = (F - 32) * 5/9
.
代码片段
const fahrenheitToCelsius = degrees => ((degrees - 32) * 5) / 9;
使用样例
fahrenheitToCelsius(32); // 0
Converts Fahrenheit to Celsius.
Follows the conversion formula C = (F - 32) * 5/9
.
const fahrenheitToCelsius = degrees => ((degrees - 32) * 5) / 9;
fahrenheitToCelsius(32); // 0