I have a Text item that display a real number:
Text { id: txt; ... }
...
txt.text: Math.round(sensor.value*10)/10
...
But if sensor.value is the integer number, it's displayed without a fractional part (35 instead 35.0). How to explicitly force txt always display a fractional part of number?