Keep It Simple, Stupid  
PerlMonks 
Re: Finding the max()/min()by etcshadow (Priest) 
on Nov 11, 2004 at 04:55 UTC ( #406924=note: print w/ replies, xml )  Need Help?? 
Here's an interesting one that doesn involve a comparison operator (even an obfuscated one): The math behind that is: take the average of the two numbers, and then add half their difference (start halfway between, and then go up by half). So: (x+y)/2 + abs(xy)/2, and then factor out the division by two.
In Section
Meditations

