Xinqi Bao's Git

Use E-notation for large powers of 10
[slstatus.git] / components / temperature.c
index 4e27a9d..bbec80b 100644 (file)
@@ -44,6 +44,6 @@
                }
 
                /* kelvin to celsius */
-               return bprintf("%d", (temp.value - 273150000) / 1000000);
+               return bprintf("%d", (temp.value - 273150000) / 1E6);
        }
 #endif