Сast and sort a list of values to a smaller list

Dear colleagues!

Whether it is possible or grasshopper result list containing the values in the (random) to a smaller list. Simply put there is not a sorted list is the need to list the required value from the first list, rounded up to the nearest from the second list.

example

  • up

    Gotzman

    Colleagues tell me please on the above mentioned subject like for grasshopper is not a difficult task???

    • up

      Andrew Heumann

      See attached for two mechanisms - one to round to the nearest number in a list, and one to round up to the next highest in the list.