min()
Table of Contents
Overview
The min() function takes numberOne and numberTwo as arguments, and returns the smaller number of the two.
Return Type
- Decimal
Syntax
(OR)
Parameter | Description | Data 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
numTwo = 200;
minValue = numOne.min(numTwo); // returns 100