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?

Thanks!