unitconv 0.1.1

Rust Simple Unit Converter
Documentation
1
2
3
4
5
6
7
8
9
/// ℃ → ℉
pub fn c_to_f(c: f64) -> f64 {
    (c * 9.0 / 5.0) + 32.0
}

/// ℉ → ℃
pub fn f_to_c(f: f64) -> f64 {
    (f - 32.0) * 5.0 / 9.0
}