Remove trailing zeros

Thank you Dimitar, this helped me today as well!

Hi Andreas,
Would you mind sharing a larger image of your method for removing 0ā€™s with varying lengths of trailing 0ā€™s in dynamo? I found this older post of yours and was able to read very little of the image.

Many thanks, this information will be quite useful.

Images should show full size when checking them out in the old forum.

http://dynamobim.org/forums/topic/remove-trailing-zeros/

2 Likes

Thank you Ewan. Was not aware of the old forum, having just recently gotten into Dynamo myself. Your assistance is quite appreciated!

1 Like

Hello @all,
Many thanks for your help and advice in this topic.
Is there a ways to define the number of trailing Zeros?

String.Replace gives me five trailing zeros, even though I define ā€œ0000ā€ to be replaced with ā€œā€

Springs.Number.ToString gives me nothing after the decimla place when trailing zeros are present - Iā€™d like to always show three numbers after the decimal point.

Is this possible?

Many thanks in advance