Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 207
MIN
Name:
Min
Syntax:
INTEGER Min(INTEGER VAL1, INTEGER VAL2)
Description:
Determine the minimum of two values based on an unsigned comparison.
Parameters:
VAL1 and VAL2 are both INTEGER values on which the test is performed.
Return Value:
The minimum of Val1, Val2 after an unsigned comparison is performed. Refer to
“Signed vs. Unsigned Arithmetic” for a further explanation of how the values are
compared.
“Signed vs. Unsigned Arithmetic” for a further explanation of how the values are
compared.
Example:
INTEGER X, Y;
FUNCTION MAIN()
{
X = MIN(65535, 0);
Y = MIN(25, 26);
}
X would be 0, and Y would be 25.
Version:
SIMPL+ Version 1.00