Format number to remove 0 after decimal point

Dear forum!

How do I format numbers so that a number displayed in a label will appear as 5 or 6 rather than 5.0 or 6.0?

I still want 5.1 or 7.2 to appear as such.

In my case, since it is impossible for more than one digit to appear after the decimal, I suppose the easiest method would be to replace any occurence of ".0" with ""

How would I do that?



but will that keep 5.1 as 5.1?

This seems to work


Sorry, real beginner here... How do you get that orage "number" part in the purple procedures block?

The workaround with text replacement appears to work. At least I've not run into issues yet. I'll post back here if I do.

In any case, thanks for your help! Much appreciated!


Try some more test cases.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.