1 Reply Latest reply on Apr 28, 2013 3:31 PM by James Newton, ACP

    nearest number in a list

    anjemalo Level 1

      Hello:

      I need to find in a number list the nearest number.

      For example:

      myList=[140,76,12,-52,-116,-180,-244,-306,-371,-436,-502,-564,-628,-693,-756]

      I need to find the nearest number of for example, -200

       

      Can you help me please?

      many thanks