943,884 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1012
  • VB.NET RSS
Sep 19th, 2008
0

Closest match

Expand Post »
I have a list of numbers, say;
1, 2, 3, 4, 5

and i want to find the next biggest number to 3, obv the answer would be 4. ive tried every book i know, and MSDN, i cant find anything, is this not possible?

Thanks for you time.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
nerden is offline Offline
21 posts
since Mar 2008
Sep 19th, 2008
0

Re: Closest match

post your code that u have tried...
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,140 posts
since Nov 2007
Sep 19th, 2008
0

Re: Closest match

Well, heres one way. Your numbers must be in an array. Sort the array desending and pick the number above your chosen number,
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Reading/Writing Binary Files
Next Thread in VB.NET Forum Timeline: Print PDF files using VB 2005





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC