XFA Specification
Chapter 23, FormCalc Specification
Arithmetic Built-in Functions
837
Max()
This function returns the maximum value of the non-null elements of a given set of numbers.
Syntax
Max(n1 [, n2...])
Parameters
n1
is the first number in the set.
n2, ...
are optional additional numbers in the set.
Returns
The maximum of its non-null parameters, or null if all its parameters are null.
Examples
Calling Max() as follows …
Max(Price[*], 100)
Returns
The maximum value of all occurrences of the object Price or 100,
whichever is greater
Max(7, 10, null, -4, 6)
10
Max(null)
null