Hi, I have 4 variables whose values can either be some positive number or infinity which I have considered to be 1e+10. My problem is to find out which is the maximum of the four excluding the ones that are infinity. Is there any simple way of doing this without using a really large number of if statements( I haven't tried that either). Any help would be really appreciated. Thanks in Advance. Gaurav.