@remote_python wrote:
I'm not sure what I'm doing wrong, the temperature value I want is displaying, just not anything after the decimal point.
So if the temperature is 16.94, I'm seeing two blanks and 16 over to the right.
The code is:
cpuTemp=int(float(getCPUtemperature())) ambient = rainbowhat.weather.temperature() calctemp = ambient - ((cpuTemp - ambient)/ 0.65) # calctemp = float("{0:.2f}".format(calctemp)) rainbowhat.display.print_float(calctemp) rainbowhat.display.show()
I've tried formating the temperature but that doesn't display it either, what am I missing?
Posts: 1
Participants: 1