RyanYL
1
Hello!
I created a script to make 3d-rooms tag with Dynamo.
I rounded data from Room Area to 1 decimals.
Then I had to convert “number” to “string”, to give the value to a text parameter in a “Model text”
But here the “String from Object” node made the rounded number again to 6 decimals.
Anyone knows how to keep the length of this rounded number?
Thanks a lot!
@RyanYL ,
try this
OUT = []
for i in IN[0]:
OUT.append(float(i))
i hope area is the right parameter to fill with strings 
KR
Andreas
1 Like
Hi @RyanYL how about this one here from spring…
…and for null this one from clockwork…
3 Likes
RyanYL
4
Thanks @sovitek! node from Spring worked well!
2 Likes
hello, here is a way to handle 
OUT = [str(round(i,1)) if i != None else '0' for i in IN[0]]
Cordially
christian.stan
1 Like
@christian.stan ,
yeah, thats very comprehensive! a one-liner.
KR
Andreas
1 Like