Min
- Last UpdatedOct 29, 2026
- 1 minute read
Returns the minimum value of a set of numbers.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
Min |
Statistical |
Synchronous |
Yes |
Supported |
Supported |
Supported |
Supported |
Supported |
Syntax
Min( numValue1, numValue2, … , numValueN ) Min( "tagArray", numSample, optNumIgnore )
Note:
This function has two formats:
If the first parameter is a numeric tag or value, you must use the Min( numValue1, numValue2, … , numValueN) format.
If the first parameter is an array tag in double-quotes or a string tag, you must use the Min( "tagArray", numSample, optNumIgnore ) format.
numValue (1…N)
Integer or Real tags containing the numbers to be analyzed.
tagArray
Name of an array tag (Real or Integer) containing the values to be analyzed.
numSample
The number of array elements to be analyzed.
optNumIgnore
Integer or Real tags containing a value to be ignored in the analysis.
Return value
Returns the minimum value of the set.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
Min( 1, 2.34, 5, 7, 4, 8, 9.4 ) // Returned value = 1 |
|
Tag |
Min( 1, 5, -9, 0, 5, 3 ) // Returned value = -9 |
|
Tag |
Min( "tagArray[1]", 3 ) // If tagArray[1]=10, tagArray[2]=20 and tagArray[3]=60, then the Returned Value = 10 |
|
Tag |
Min( "tagArray[1]", 3, 10 ) // If tagArray[1]=10, tagArray[2]=20 and tagArray[3]=60, then the Returned Value = 20 |