Gordon, your example worked. I echoes out, for example, 24.91330565947488295819 I was able to convert C to F by this:
var tempinc = (vOut - vZero) / tCoeff; var tempinf = tempinc * (9 / 5) + 32;
Is there anyway to change the decimal place to just two digits after the decimal?
@d0773d started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Gordon, your example worked. I echoes out, for example, 24.91330565947488295819 I was able to convert C to F by this:
Is there anyway to change the decimal place to just two digits after the decimal?