Raised This Month: $ Target: $400
 0% 

How to get the highest value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FEELiFE
Member
Join Date: Jul 2010
Old 12-04-2011 , 06:56   How to get the highest value
Reply With Quote #1

Hi guys! I need to get the highest value of a few variables. I don't like to use if because I have to compare all the values to each other and it's very clumsy.

And one more question - how can I easily check if two or more of the values are the same because there "will be two highest values" but in this case I want to chose randomly one (because the code goes wrong and no value is chosen in this case).

The values are stored in Votes[5], Votes[7], Votes[9], Votes[11], Votes[15].
FEELiFE is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode