algorithmic 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
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
I see, tnx David!
best,
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by