MAX
MAX returns the largest value from a set of two or more expressions.
- x and y
- Expressions.
All the arguments must be real. The result is real, with the common base and scale of the arguments.
If the arguments are fixed-point with precisions:
(p1,q1),(p2,q2),...,(pn,qn)
then the precision of the result is given by:
(min(N,max(p1-q1,p2-q2,...,pn-qn) + max(q1,q2,...,qn)),max(q1,q2,...,qn))
where N is the maximum number of digits allowed.If the arguments are floating-point with precisions:
p1,p2,p3,...pn
then
the precision of the result is given by: max(p1,p2,p3,...pn)
The maximum number of arguments allowed is 64.
If all the arguments are UNSIGNED FIXED BIN, then the result is UNSIGNED FIXED BIN.