I want to make this number format:
Examples
12,512.1
12,512
12,512.39
12,512.39 if the input is 12,512.394
12,512.40 if the input is 12,512.399

How can i make this;
I tried this one: #.## but i have a "." at the end if there is no demical