1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Simple Utility functions
////////////CELSIUS////////////
/// Converts a f64 from Celsius to Fahrenheit
/// ```rust
/// use tempconvert::utils::c_to_f;
/// c_to_f(0.0);
/// // output
/// // 32.0
/// ```
/// Converts a f64 from Celsius to Kelvin
/// ```rust
/// use tempconvert::utils::c_to_k;
/// c_to_k(0.0);
/// // ouput --> 273.0
/// ```
////////////FAHRENHEIT////////////
/// Converts a f64 from Fahrenheit to Celsius
/// ```rust
/// use tempconvert::utils::f_to_c;
/// f_to_c(32.0);
/// // output --> 0.0
/// ```
/// Converts a f64 from Fahrenheit to Kelvin
/// ```rust
/// use tempconvert::utils::f_to_k;
/// f_to_k(32.0);
/// // output --> 273.0
///
////////////KELVIN////////////
/// Converts a f64 from Kelvin to Celsius
/// ```rust
/// use tempconvert::utils::k_to_c;
/// k_to_c(273.0);
/// // output --> 0.0
/// ```
/// Converts a f64 from Kelvin to Fahrenheit
/// ```rust
/// use tempconvert::utils::k_to_f;
/// k_to_f(273.0);
/// // output --> 32.0
/// ```