Quantcast
Channel: Question and Answer » formatters
Viewing all articles
Browse latest Browse all 10

Views: how to remove ending zeros from decimal field

$
0
0

Suppose, we have a view with a decimal field:

enter image description here

It is output like this:

5 000.000

Is it possible to remove the ending zeros, so it looked like this:

5 000

But if there are meaningful values in the field, it should output all of them. For example:

5.100 -> 5.1
5.010 -> 5.01
5.001 -> 5.001

Viewing all articles
Browse latest Browse all 10

Trending Articles