Migrate celsius/fahrenheit conversions

This commit is contained in:
Angelos Chalaris
2020-04-16 11:00:06 +03:00
parent d826a5ee6f
commit 31eb0269a8
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ title: celsiusToFahrenheit
tags: math,beginner tags: math,beginner
--- ---
Celsius to Fahrenheit temperature conversion. Converts Celsius to Fahrenheit.
Follows the conversion formula `F = 1.8C + 32`. Follows the conversion formula `F = 1.8C + 32`.
@ -13,4 +13,4 @@ const celsiusToFahrenheit = degrees => 1.8 * degrees + 32;
```js ```js
celsiusToFahrenheit(33) // 91.4 celsiusToFahrenheit(33) // 91.4
``` ```

View File

@ -3,7 +3,7 @@ title: fahrenheitToCelsius
tags: math,beginner tags: math,beginner
--- ---
Fahrenheit to Celsius temperature conversion. Converts Fahrenheit to Celsius.
Follows the conversion formula `C = (F - 32) * 5/9`. Follows the conversion formula `C = (F - 32) * 5/9`.
@ -13,4 +13,4 @@ const fahrenheitToCelsius = degrees => (degrees - 32) * 5/9;
```js ```js
fahrenheitToCelsius(32); // 0 fahrenheitToCelsius(32); // 0
``` ```