Remove insignificant Zeros from decimal part

Hi,

I have the follow issue, and until now I do not have any workaroud to solve.

All I want is remove insignificant zeros from decimal part:
Example:

12.0000 = 12
12.4500 = 12.45
12.40 = 12.4

Best Regard´s
Hugo Jesus

Hi Hugo,

where do these insignificant digits show up? Can you attach a screenshot?

Not the most beautiful solution, but it seems to work… :grinning:
Remove zeroes.morph (2.5 KB)

It would be quite comfortable to have an option to choose an own format like in excel (‘0.####’ in this case).

Regards,

Jochen

Thanks a lot, that´s the idea,

It isn´t the most beautiful solution like you said, but the most important, it´s to work, because I don´t found anything when I searched for this topic.

Thanks again,
Hugo Jesus

1 Like

@Jochen_Marquardt, just to let you know that this solution did not work for decimal numbers >0 and <1. Also it did not work with negative numbers.

I have updated the project and reattached it here in case anyone else wants to do a similar thing in future.

There is one gotcha with this project, the end result is a column of text values. This may or may not be what @hjesus was looking for.Remove zeroes.morph (7.1 KB)

1 Like