Garry's Mod Wiki

math.min

number math.min( vararg numbers )

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 12