Choose where you’d like to start

min()

Overview

The min() function takes numberOne and numberTwo as arguments, and returns the smaller number of the two.

Return Type

  • Decimal

Syntax

<variable> = <numberOne>.min(<numberTwo> );

(OR)

<variable> = min( <numberOne>, <numberTwo> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<numberOne>The number which has be compared with numberTwo.NUMBER or DECIMAL
<numberTwo>The number which has be compared with numberOne.NUMBER or DECIMAL

Examples

numOne = 100;
numTwo = 200;
minValue = numOne.min(numTwo);       // returns 100

Get Started Now

Execute