Search⌘ K

Solution Review: Celsius to Fahrenheit

Explore how to create and use functions in ReasonML by implementing a Celsius to Fahrenheit conversion. Understand float arithmetic within function definitions as a foundation for more complex functional programming tasks.

We'll cover the following...

Solution

Reason
let convertTemp = (celsius: float) => celsius *. 1.8 +. 32.0;
Js.log(convertTemp(40.5));

Explanation

...