max(a, b);Return the largest value.
Can also take any number of arguments, or a table.
Arguments
aThe first valuebThe second valueReturns
numberThe largest valuemax(2, 5); -- returns 5
max(2, 5, 7); -- returns 7
max({ 2, 5, 7 }); -- returns 7