Imported Upstream version 1.1.2
[psensor-pkg-ubuntu.git] / src / lib / temperature.c
index 3e74898..0ad5a43 100644 (file)
@@ -28,3 +28,7 @@ double fahrenheit_to_celsius(double f)
        return (f - 32) * (5.0/9.0);
 }
 
+double kelvin_to_celsius(double k)
+{
+       return k - 273.5;
+}