math.min

From GMod Wiki

(Redirected from Math.Min)
Jump to: navigation, search
Function
Syntax math.min( Number a , Number b, ... )
Where is this used?
Description:
Returns the smallest argument specified.
Returns: Number
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.min]Math.min [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the smallest value which math.min was given
Used onNewerShared.png
Code
print(math.min(19, 2))
Output2


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox