To limit the number of displayed (and not always needed) characters on a 4x20 LCD, It would be needed to be able to display some numbers without a decimals. Or with only one decimal place. For example, when displaying atmospheric pressure, no decimals display is needed. Similarly, when showing the temperature, one decimal place is enough.
I query Domoticz SQLite DB for necessary parameters and then send it to quad dummy sensor in nodeMCU using LUA script. This script cut off for example decimals in value of atmospheric pressure and send it in this form to nodeMCU equipped with 4x20 LCD. That implicates event:
As You can see, [Temp-Baro#Baro] variable has two zeros as decimals. But I want to display it on 2x4 LCD without decimals. Is it possible? If yes, how can I do it?