Max - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
206
SIMPL+

Max

Name:
Max
Syntax:
INTEGER Max(INTEGER VAL1, INTEGER VAL2)
Description:
Determine the maximum 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 maximum of Val1, Val2 after an unsigned comparison is performed. Refer to
"Signed vs. Unsigned Arithmetic" on page
values are compared.
Example:
INTEGER X, Y;
FUNCTION MAIN()
{
X = MAX(65535, 0);
Y = MAX(25, 26);
}
X would be 65535, and Y would be 26.
Version:
SIMPL+ Version 1.00
Crestron SIMPL+
21
for a further explanation of how the
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents