Migrate celsius/fahrenheit conversions
This commit is contained in:
@ -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
|
||||||
```
|
```
|
||||||
@ -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
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user