Gotcha...thanks...

Rick


> -----Original Message-----
> From: Keith Gaughan [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 15, 2005 11:36 AM
> To: CF-Talk
> Subject: Re: Max value of 3 variables
> 
> 
> Rick Faircloth wrote:
> 
> >>Or #arrayMax(listToArray(numbers))#
> > 
> >>For flexibility, how about this: ListFirst(ListSort(numbers,'numeric'))
> > 
> > 
> > And how, exactly, would these assist in obtaining
> > the top value of 3 numbers?
> > 
> > Does "arrayMax" put the maximum value first in the array?
> 
> No, it searches the array and returns the maximum value in it.
> 
> > I guess "ListFirst(ListSort(..." would put the maximum value 
> first in the
> > list?
> 
> No, it doesn't touch the list except to sort it, and then return the
> first value in the list.
> 
> If it's just three numbers, then Max(Max(a, b), c) is fine, but as the 
> saying goes, "two is an impossible number"[1]: it's worth generalising
> this to cope with any number of values, which is what everybody was
> doing.
> 
> K.
> 
> [1] http://c2.com/cgi/wiki?TwoIsAnImpossibleNumber
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203080
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to