Garry's Mod Wiki

Garry's Mod Wiki

  number math.min( ... )

Description

Returns the smallest value of all arguments.

Arguments

1 vararg numbers
Numbers to get the smallest from.

Returns

1 number
The smallest number

Example

Get the smallest number of a group.

print( math.min( 1, 2, -3, 464, 654698468 ) )
Output: -3

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...