MIN Function

The MIN function compares the two number values you specify and returns the lesser of the two.

This function accepts two numbers, compares them, and returns whichever is a smaller number.

Function name MIN
Usage model
MIN ( n1:NUM, n2:NUM ) 
Parameters This function requires you to replace two parameters:

n1: NUM

The function determines which of the two number values is lesser.

n2: NUM

The function determines which of the two number values is lesser.
Result A number value.

Example

In the following number computation, the expression compares the two values, Shipping Costs and Labor Costs, and returns the lesser of the two values:

MIN( Shipping Costs, Labor Costs )

Download

After you download the example template, you can import the template to any workspace to see this example code in action.