Transforming numberLists

Is there a convenient way to create one numberList from another by transforming (applying a function or equivalent to) each element of the list in the same way (e.g. rounding each value)?

Pretty much anything you can pass individual values through in the graph, you can pass lists to create a new list. So, if you have list, L, and you want to round all value to 2 decimal places to create list, M.
M=round(L,2)

1 Like

Excellent! That’s much more straightforward than I was expecting. :blush:

You really don’t even need to use a second list now that I think of it, unless you need each for other purposes.

L=round( [0.100, 0.101,...0.200] , 2)