MAXVAL

MAXVAL returns the maximum value that its numeric operand could assume.

Read syntax diagramSkip visual syntax diagram
>>-MAXVAL(x)---------------------------------------------------><

x
An expression. x must have the REAL attribute.

MAXVAL(x) >= x and MINVAL(x) <= x are always true.

The following table shows the relations among MAXVAL(x), MINVAL(x) and HUGE(x), when x is FLOAT.
Built-in functions Same as
MAXVAL(x) HUGE(x)
MINVAL(x) -HUGE(x)
For more information, see HUGE and TINY.

MAXVAL(x) is a constant and can be used in restricted expressions.






Published: 23 December 2018