generative modeling for Rhino
Hi! there,
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...
best,
Tags:

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.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by Peter Kluck on January 26, 2012 at 10:59am
Permalink Reply by dimitris koletsios on January 26, 2012 at 12:01pm thanks for the quick reply...
best,

Hi Dimitris,
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.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by dimitris koletsios on January 28, 2012 at 11:47am I see, tnx David!
best,
© 2013 Created by Scott Davidson.
Powered by