Python Forum
Get the correct value when comparing with the list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the correct value when comparing with the list
#5
well, with lookup value between 1180 and 1183 the value you will get is 1138, i.e. that's closest value from the list , not exceeding the lookup value.
i.e. lookup is the number you compare with the list looking for value from the list that is closest but not exceeding the lookup value (as per your original post)
Reply


Messages In This Thread
RE: Get the correct value when comparing with the list - by buran - Aug-06-2017, 09:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Comparing List values to get indexes Edward_ 7 1,261 Jun-09-2023, 04:57 PM
Last Post: deanhystad
  Select correct item from list for subprocess command pythonnewbie138 6 3,383 Jul-24-2020, 09:09 PM
Last Post: pythonnewbie138
  Problem with comparing list palladium 2 2,186 Jul-08-2020, 10:49 AM
Last Post: DeaD_EyE
  comparing 2 dimensional list glennford49 10 4,244 Mar-24-2020, 05:23 PM
Last Post: saikiran
  What is the correct syntax for list items that need to contain a quotation mark, etc? KaisoArt 7 3,599 Sep-14-2019, 05:26 AM
Last Post: buran
  Looping through dictionary and comparing values with elements of a separate list. Mr_Keystrokes 5 3,970 Jun-22-2018, 03:08 PM
Last Post: wavic
  Create a new list by comparing values in a list and string DBS 2 3,590 Jan-14-2017, 07:59 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020