Unwanted zeros

I have a list of numbers that I’m pairing with some text. The numbers start out formatted exactly how they need to be (as shown by the Math.Abs node). However, after combining with the text, I end up with unwanted zeros. How can I combine these numbers with text and keep them formatted exactly the same.

image

It comes from when you convert a float to a string. This thread should help you: Remove trailing zeros

2 Likes

Hi @keith.sowinski ,

Try the following python script. Opt1 and Opt2. Sample: Python_D4C3D_NumToStn_ConcatenateNumStr.dyn (16.6 KB)

Cheers,
Jowenn

3 Likes

Thank you @JowennLua. This is perfect!