Double type convert to string

Hello!

I want to convert a number with two decimal places into a string and then annotate these numbers using TextNote.ByPoint.

The problem is that after converting the number into a string, extra zeros are added at the end. I only want the result with two decimal places, and no additional digits after that. What is the issue with this node?


Hi @houhou you could try number to string from spring there you can set the digits…or ootb string remove

Thankyou for your fast reply. I didn’t found [number to string] node in my dynamo(2.12.1).

Maybe from a packages? But by the same way I used chatgpt got a python code and solved this problem!

Thankyou for your advice :blush:

great…that one i mention is from spring package and written in python as well :wink: have to admit i dont use gpt so much for dynamo :wink: :wink: but great it works

1 Like