min 123, max 123, min 123 ignore zero, max 124 ignore zero, min numeral, max numeral, min numeral ignore zero, max numeral ignore zero
These functions identify the minimum or maximum numeric values. Following rules apply
Minimum Function Name | Maximum Function Name | Autom. Type conversion | Description |
---|---|---|---|
min 123 | max 123 | Yes | Picks minimum or maximum numeric value provided |
min numeral | max numeral | No | " |
min 123 ignore zero | max 123 ignore zero | Yes | Picks minimum or maximum numeric value provided, but 0's are ignored |
min numeral ignore zero | max string ignore zero | No | " |
Please note that equivalent conditional combination functions are also available for the function names listed above which allows you to pre-select specific parameters to include in the calculation using one or more comparisons .
Min 1
No. | Type | Description |
---|---|---|
1, etc. input |
valid types | All function parameters: Same parameter passing principle is applied like other series functions such as add(), sub(), etc. |
Type | Description |
---|---|
numeral | Result Calculated value |
Function names containing 'numeral' assert exceptions if values provided are not of type numeral.
echo( max 123( 1, 3, 5 ) ); // 5
echo( min 123( "0002", "1", "3" ) ); // 1
echo( max 123 ignore zero( -4, -2, 0, -1 ) ); // -1
5
1
-1