The following code returns 4030.332 instead of 4030.33158 on an ESP32 and Rpi Pico. What happens to the rest of the digits?
Using Python on Linux/Windoze, the code returns correctly all digits.
TIA
Code: Select all
lat = '4030.33158'
lat = float(lat)
# lat = lat / 100
# lat = str(lat)
print(type(lat))
print(lat)
>>> 4030.332