Max
(Engine-Level Function)
| Description: | Returns the maximum of a group of parameters. |
| Returns: | Numeric |
Usage: ![]() |
Script or steady state. |
| Function Groups: | Generic Math |
| Related to: | Abs | AMax | AMin | Limit | Min |
Format: ![]() |
Max(Parm1, Parm2 [, Parm3, ...]) |
| Parameters: |
| Parm1, Parm2, Parm3, ... |
| Required. Any number of parameters giving any numeric expressions, from which a maximum value will be selected. |
| Comments: | The order of the values is irrelevant. If any of the parameters is invalid, the return value is invalid also. |
Examples:
p = Max(2, 3, 2.9, -3); q = Max(3, 2); r = Max(Invalid, 6);
The values of p, q, and r will be 3, 3 and Invalid respectively.
