From 441901d4ef0615f7c0c7c42d33af8c6846b8cb0d 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/temperature.c') 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