Sorry, I mixed it up. :(
Math.max() will return the expected result.