generative modeling for Rhino
I have a little problem with a list of numbers.
I have a list and i want to put it in an order from the smaller to the bigger. There is a part of code missing... can i do it easy with grasshopper?
actually i want to pic every time the smallest number of that list...
You can either create a domain from a list of numbers using the [Bounds] component, which will then allow you to get the smallest and largest values.
Or you can sort the list (using the [Sort] component) and then extract the sorted list item at index = 0.
thanks for the quick reply...
careful, when you run data through the panel, it gets converted to text. In the case of numbers, conversion to and from text is possible, but you do lose decimal places as the textual representation of numbers is rounded to 6 decimals.
I see, tnx David!