temp_util
Easily swap between temperature units (Fahrenheit / Celsius)
Usage:
import temp_util //Import the package
// To convert from fahrenheit to celsius, we can use this function:
// temp_util.to_celsius(fahrenheit f64)
// Example:
temp_util.to_celsius(81) // --> returns 27.222 as f64
// To convert from celsius to fahrenheit, we can use this function:
// temp_util.to_fahrenheit(celsius f64)
// Example:
temp_util.to_fahrenheit(23) // --> returns 73.4 as f64
All outputs of the functions above, are rounded to 3 digits.