Temperature Converter

This is a simple temperature unit converter between Celsius, Fahrenheit and Kelvin units. It uses the dialoguer crate to interact with the user and the thousands crate to present the results in a human readable way. It can be imported as a library to access to transform functions, they are simple implementations of the transform formulas using the f32 type.

Demo

$ temp_converter

$ temp_converter ? What unit do you want to convert from? › ❯ Celsius Fahrenheit Kelvin

$ temp_converter ✔ What unit do you want to convert from? · Celsius ? What unit do you want to convert it into? › Celsius ❯ Fahrenheit Kelvin

$ temp_converter ✔ What unit do you want to convert from? · Celsius ✔ What unit do you want to convert it into? · Fahrenheit ? Please write the value › 154.75

$ temp_converter ✔ What unit do you want to convert from? · Celsius ✔ What unit do you want to convert it into? · Fahrenheit ✔ Please write the value · 154.75 Result: 310.55 °F