Use the builtin function max.
max
Example: max(2, 4) returns 4.
max(2, 4)
Just for giggles, there's a min as well...should you need it. :P
min
max()
max(number_one, number_two)