Is it possible to delete trailing zeros from the end of a number merged into a mergefield, when one doesn’t know ahead of time how many zeros there may be? I know it’s possible to use a numeric picture switch (#) to cut off numbers at any given decimal place, but I need to format the field so that, for example:
4.000 will appear as 4
4.200 will appear as 4.2
4.250 will appear as 4.25
4.258 will appear as 4.258
The number is in the middle of a paragraph, so using # in a numeric switch is difficult, because of the spaces it will leave behind. Also, this document is used as part of a batch merge process, so I can’t merge the doc. and then fiddle with it after the fact — the formatting has to be right when the document is merged.
It seems to me this should be possible, but I’ve never found a way to do it — am I missing something?
Thanks!