Skip to main content

fahrenheitToCelsius

TS JS Deno

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