Garry's Mod Wiki

math.min

  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