Click to See Complete Forum and Search --> : maximum/minimum value


davey
01-01-2005, 01:08 AM
what would be the easiest way to find the maximum value of a few inputed numbers?

buntine
01-01-2005, 08:12 PM
Im not sure I understand what you mean. The maximum value of a number is the number itself. Or do you want to sum the input?

Regards.

IncaWarrior
01-01-2005, 08:18 PM
What format are they inputted?

ray326
01-01-2005, 09:55 PM
I think the question is, "Given a collection of values, determine the highest value in the collection."

The only way to do it in general is iterate the collection and save the largest value you find in a separate variable.