EasyManua.ls Logo

Crestron SIMPL+ - SMin Function

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software Crestron SIMPL+
®
210 z SIMPL+
®
Language Reference Guide - DOC. 5797G
SMin
Name:
SMin
Syntax:
INTEGER SMin(INTEGER VAL1, INTEGER VAL2)
Description:
Determine the minimum of two values based on a signed comparison.
Parameters:
VAL1 and VAL2 are both INTEGER values on which the test is performed.
Return Value:
The minimum of Val1, Val2 after a signed comparison is performed. Refer to
“Signed vs. Unsigned Arithmetic” on page 21 for a further explanation of how the
values are compared.
Example:
INTEGER X, Y;
FUNCTION MAIN()
{
X = SMIN(65535, 0);
Y = SMIN(25, 26);
}
X would be 65535 (interpreted as -1), and Y would be 25.
Version:
SIMPL+ Version 1.00

Table of Contents