Grasshopper

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,

Views: 5140

Replies to This Discussion

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,

Attachments:

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,

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service