min()

Category: Math

Subcategory: Calculation

Complexity: Intermediate

Description

Determines the smallest value in a sequence of numbers, and then returns that value. min() accepts either two or three float or int values as parameters, or an array of any length.

Related

Example

Code:
int d = min(5, 9);            // Sets 'd' to 5
int e = min(-4, -12);         // Sets 'e' to -12
float f = min(12.3, 230.24);  // Sets 'f' to 12.3
Preview: