mbedford99
New member
- Joined
- Oct 10, 2006
- Messages
- 2
- Programming Experience
- Beginner
Hello,
What is the easiest way to take a series of numbers from a couple of text boxes and compare number to number and output only the most common occurance? For example, if you have a number that should be 10224 but you get multiple results such as:
textbox1: 10224
textbox2: 10223
textbox3: 10224
textbox4: 20224
textbox5: 21001
Result: 10224
As you can see, this is different then simply averaging. But if the number should actually be 10224 and each text box has a different value, most times when you break down number by number and output the most common, you can still arrive on the actual number. Textbox 1-5, with the first number there were three instances of a 1 and two instances of a 2. There were more ones than twos so we output the one and move on to the next number and so on.
Sorry to sound redundant but want to make sure I get what I am trying to do clear. Hopefully that makes sense. How would I do this in VB.Net? It is probably simply but I am getting hung up on it.
Thanks in advance!!!
Mike
What is the easiest way to take a series of numbers from a couple of text boxes and compare number to number and output only the most common occurance? For example, if you have a number that should be 10224 but you get multiple results such as:
textbox1: 10224
textbox2: 10223
textbox3: 10224
textbox4: 20224
textbox5: 21001
Result: 10224
As you can see, this is different then simply averaging. But if the number should actually be 10224 and each text box has a different value, most times when you break down number by number and output the most common, you can still arrive on the actual number. Textbox 1-5, with the first number there were three instances of a 1 and two instances of a 2. There were more ones than twos so we output the one and move on to the next number and so on.
Sorry to sound redundant but want to make sure I get what I am trying to do clear. Hopefully that makes sense. How would I do this in VB.Net? It is probably simply but I am getting hung up on it.
Thanks in advance!!!
Mike