Transforms a string into a number

string sorting:

to sort with numbers I have to transform the strings into numbers:

how to do it?
any help…thank you

Dynamo and Python both have methods to convert types as long as you have a valid input.


Note that you must specify the numerical object type in Python (float/double is the most flexible) and that Dynamo formats doubles with trailing zeroes when converted to string (which you can clean up if you need to).

Thanks for the help… very helpful