How to display decimals only when they exist?

1

How could I do so that in my select the numbers would appear without decimal place when they are 00 and the decimal places appeared when they are different from zero.

Example: I have 5 numbers returning like this: 16.00; 10.00; 3.14; 5.00; 13.45. How do I get them to return this way: 16; 10; 3.14; 5; 13.45.

    
asked by anonymous 14.06.2017 / 23:15

0 answers