math.min

From Garry's Mod
Jump to: navigation, search
 math.min( )

Contents

Description

Returns the smallest value of all arguments.

Arguments

vararg numbers

Numbers to get the smallest from.

Returns

number

The smallest number

Examples

Example

Get the smallest number of a group.

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

Output:

-3
Personal tools
Navigation