跳到主要内容

celsiusToFahrenheit

TS JS Deno

Converts Celsius to Fahrenheit.

Follows the conversion formula F = 1.8C + 32.

typescript
const celsiusToFahrenheit = (degrees: number) => 1.8 * degrees + 32;
typescript
celsiusToFahrenheit(33); // 91.4