Math.max() conversions post by Gonçalo Morais