answered Apr 14 '13
You need to use standard Java method [Math.max](http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html#max(double,%20double).