How can i avoid creating digits ? from double to string

Hello,

why is dynamo doing that? how can i establish that i have 2 digits, like the result?


KR
Andreas

5 Likes

a dedication python i know you are fond of :wink:
OUT = ["{:.2f}".format(i) for i in IN[0]]


cordially
christian.stan

4 Likes

just parsing to string in python seems to do the trick as well…

5 Likes

woauh the cow, you are all too strong
cordially
christian.stan

1 Like