I am able to display pressure data from a BMP180 sensor in whole numbers but would like it to display to one decimal point.
This is the code I am using.
mylcd.lcd_display_string(“Pressure: %d%s hPa” % (pressure,chr(32)), 4)
Unfortunately researching the internet only gives me suggestions for displaying to the screen and not the LCD.
Thanks in advance for any help.