math.max

From GMod Wiki

Jump to: navigation, search
Function
Syntax math.max( Number a , Number b, ... )
Where is this used?
Description:
Return the larger of a and b or ....
Returns: Number
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.max]Math.max [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the largest value which math.max was given
Used onNewerShared.png
Code
print(math.max(1, 2))
Output2


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox