I\'d like to know if exists some function to automatically format a number by it\'s decimal, so if I have:
As Emil says yours are good. But if you want to remove 0 from e.g. 7.50 too, I've got a suggestion, rtrim():
0
7.50
rtrim()