-
Re: comparing numbers
ok i got that part down but lets say this;
each object has 2 values. named a and b
if value a is the same as someone else's value a, it goes to value b.
btw ty for that post
also not only do i want to find out which value is the highest, i want to be able to detect which is the 2nd highest, 3rd, and 4th, etc
-
Re: comparing numbers
You're very welcome.
I'm not sure I understand, "It goes to value b".
Oh ok! I get it now. May I ask why???
It might help if I knew the situation this is needed in.
-
Re: comparing numbers
idk, i guess it would be most like a mario party game where there are stars and coins. if someone has the same amount of stars, it goes to coins to see which place anyone is in.
although i hate mario party games :(
-
Re: comparing numbers
I would like to say, "You shouldn't even worry about it if you're not going to use it" but I'll answer it.
The easiest way I can see it is to ALSO test A=B, A=C, A=D, B=C, B=D, C=D or something along those lines. You just then need to find a way to rule out an equality if it lower than another equality, so if B and D were both 7, but A and C were both 56.
-
Re: comparing numbers
-
Re: comparing numbers
I cant really explain that one, I don't know how to fully do it, but you could start out by testing to see if any values are equal. The problem is that you may have 2 sets of equal integers. It's a little easier if you are actually coding it out but I am really into my own program right now and this sounds like it'd take a while to finish off, but do you understand the basis off what I'm talking about? You just would test if any values are equal.
-
Re: comparing numbers
ok, that is what i needed. ty
-
Re: comparing numbers
It's not going to be simple. There may be an easier way, so you might want to stick around and hope someone else answers.
Good Luck
-
Re: comparing numbers
dont worry, i think i already have it figured out, if it works, i will post it here
-
Re: comparing numbers
Thanks, I'd actually like to see it, and see how it works.