set text size of label zero if it contains a number with one decimal place

I enter a label for a layer with a text size that has one decimal place (e.g. 8.5). Then I save and close the project. And when opened the text size is set to 0. If I then uninstall the app the problem no longer occurs.