
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to remove trailing zeros
Hi All,
I have field A, which has values 1 & 0. We get data every month end. But for this month we got the values with trailing numbers (i.e. 1.00000000000000000000 and 0.000000000000000000).
Can anyone please help me in removing the trailing zeros?
Thanks in advance!
Cheers,
VK
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try like:
SubField(A, '.',1) as NewA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How about
Num(A, '##')
or
Num(A, '##.')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this?
SubField(FieldName, '.', 1)
Or
FieldName * 1
Or
FieldName * Avg(1)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sunny,
Thanks for the response. But I don't see any value associated to that date. I see '-'.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see any value associated to that date. I see '-'.
To what date?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I mentioned, every month we get the data. The values will be 0 and 1. But for this month I got trailing zeros (i.e. 1.00000000000000000 and 0.00000000000000000).
When I created the list box for field "A", I see 0 and 1.
Now I selected the date 2/28/2017, then I see the association for the field A (i.e. 0 and 1 with White background in the list box).
Now I selected the date 3/30/2017, then I see no association for the field A (i.e. 0 and 1 with Grey background in the list box).
This is after using Num(A, '##').

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
Thanks for the quick response.
Cheers,
VK


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe A is a string and /or your decimal separator is different and you need to use the Num# function? i.e.
num(num#( A, '#.#', '.' , ','),'##')
