Prepare repository for merge
This commit is contained in:
20
javascript/snippets/fahrenheit-to-celsius.md
Normal file
20
javascript/snippets/fahrenheit-to-celsius.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Fahrenheit to Celsius
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: last-light
|
||||
dateModified: 2021-01-04T13:04:15+02:00
|
||||
---
|
||||
|
||||
Converts Fahrenheit to Celsius.
|
||||
|
||||
- Follow the conversion formula `C = (F - 32) * 5 / 9`.
|
||||
|
||||
```js
|
||||
const fahrenheitToCelsius = degrees => (degrees - 32) * 5 / 9;
|
||||
```
|
||||
|
||||
```js
|
||||
fahrenheitToCelsius(32); // 0
|
||||
```
|
||||
Reference in New Issue
Block a user