dynMin()
Outputs the smallest field element.
Synopsis
int dynMin(dyn_int x [, dyn_bool mask]);
uint dynMin(dyn_uint x [, dyn_bool mask]);
float dynMin(dyn_float x [, dyn_bool mask]);
time dynMin(dyn_time x [, dyn_bool mask]);
Parameters
Parameter | Meaning |
---|---|
x | Dynamic field to be examined |
mask | Masking field |
Return Value
Returns the smallest element of the dynamic field x, in the event of errors -1 is returned.
Errors
An error message is issued in the event of missing or incorrect arguments.
Description
Returns the smallest element of the dynamic field x, in the event of errors -1 is returned. The optional argument mask has the same function as in dynMax().
Example
The minimum value is determined, using a mask.
main()
{
dyn_int di;
di=makeDynInt(1,110,120,130,140,150,160);
DebugN(dynMin(di, makeDynBool(false))); // Min. is 110 !
}
Assignment
Dynamic fields
Availability
CTRL