This commit is contained in:
Angelos Chalaris
2018-10-16 20:22:23 +03:00
parent a9a61b4de2
commit 26afaf454c
13 changed files with 50 additions and 58 deletions

View File

@ -1,14 +0,0 @@
### kphToMph
Convert kilometers/hour to miles/hour.
Multiply the constant of proportionality with the argument.
```js
const kphToMph = (kph) => 0.621371192 * kph;
```
```js
kphToMph(10); //16.09344000614692
kphToMph(345.4); //138.24264965280207
```

View File

@ -1,14 +0,0 @@
### mphToKph
Convert miles/hour to kilometers/hour.
Multiply the constant of proportionality with the argument.
```js
const mphToKph = (mph) => 1.6093440006146922 * mph;
```
```js
mphToKph(10); //16.09344000614692
mphToKph(85.9); //138.24264965280207
```