CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

finding maximum and minimum value of a few numbers

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
neohimura



Joined: 08 Feb 2011
Posts: 14

View user's profile Send private message

finding maximum and minimum value of a few numbers
PostPosted: Wed May 18, 2011 1:13 am     Reply with quote

Hi,
I have a set of 10 numbers. Can anyone please share the code for finding the minimum and maximum number of that particular set of number?

Thank you.
Ttelmah



Joined: 11 Mar 2010
Posts: 19505

View user's profile Send private message

PostPosted: Wed May 18, 2011 2:56 am     Reply with quote

Look at EX_ADMM.c, and ADMM10.c
These take a number of ADC readings, and return the max and minimum. Basic code is the same whatever the number source.

Best Wishes
neohimura



Joined: 08 Feb 2011
Posts: 14

View user's profile Send private message

PostPosted: Wed May 18, 2011 9:32 am     Reply with quote

Thank you Ttelmah. I'll give it a try.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group