Piorun Posted October 14, 2011 Share Posted October 14, 2011 Hi. Today I've got a question for "How to math a max value from a table?" Here's a table example = { 52, 20, 24 } And how to use a math.max function for that? Link to comment
BinSlayer1 Posted October 14, 2011 Share Posted October 14, 2011 local max = math.max(52, 20, 24) --max contains 52 or if you want it from a table.. local max = math.max(unpack(example)) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now