From 682c0fedde04fe6713539726494ec2db67ba5d2a Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Sun, 27 May 2018 17:57:52 +0200 Subject: Use E-notation for large powers of 10 --- components/temperature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components') diff --git a/components/temperature.c b/components/temperature.c index 4e27a9d..bbec80b 100644 --- a/components/temperature.c +++ b/components/temperature.c @@ -44,6 +44,6 @@ } /* kelvin to celsius */ - return bprintf("%d", (temp.value - 273150000) / 1000000); + return bprintf("%d", (temp.value - 273150000) / 1E6); } #endif -- cgit v1.2.3