Select library

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > ST language > Embedded functions >

Select library

Previous pageReturn to chapter overviewNext page

min(Input1, Input2) - used to select minimum value of Input2 and Input1 (Output=Min(Input, Input2)).

max(Input1, Input2) - used to select maximum value of Input2 and Input1 (Output=Max(Input, Input2)).

 

Example:

int a = max(6, 12);

print(a);

Response:

a = 12;