Use E-notation for large powers of 10

This commit is contained in:
Laslo Hunhold
2018-05-27 17:57:52 +02:00
committed by Aaron Marcher
parent c28643ce5b
commit 682c0fedde
2 changed files with 3 additions and 3 deletions

View File

@ -44,6 +44,6 @@
}
/* kelvin to celsius */
return bprintf("%d", (temp.value - 273150000) / 1000000);
return bprintf("%d", (temp.value - 273150000) / 1E6);
}
#endif