Skip to content

Commit 7308571

Browse files
thepabloaguilarpetertseng
authored andcommitted
temperature: swap formulae for Fahrenheit and Celcius
They were the wrong way around
1 parent 74b5163 commit 7308571

File tree

1 file changed

+2
-2
lines changed
  • exercises/concept/temperature/.docs

1 file changed

+2
-2
lines changed

exercises/concept/temperature/.docs/hints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Convert Farenheit to Celsius
44

5-
- Temperature in degrees Celsius is defined as: T(°F) = T(°C) × 1.8 + 32
5+
- Temperature in degrees Celsius is defined as: T(°C) = (T(°F) - 32) / 1.8
66
- The temperature in Farenheit is provided as an `Integer` and must return Celsius as a `Float`.
77
The `fromInteger` function will come in handy.
88

99
## Convert Celsius to Farenheit
1010

11-
- Temperature in degrees Fahrenheit is defined as: T(°C) = (T(°F) - 32) / 1.8
11+
- Temperature in degrees Fahrenheit is defined as: T(°F) = T(°C) × 1.8 + 32
1212
- The temperature in Celcius is provided as a `Float` and must return Farenheit rounded up to the closest `Integer`.
1313
The `ceiling` function will come in handy.

0 commit comments

Comments
 (0)