next up previous

12.5.1.6 Maximum Numeric Value

The max function returns the value of its largest numeric argument. Each of its arguments should be a numeric expression. When necessary, integers are temporarily converted to floats for comparison. The return value will either be integer or float (depending upon the type of the largest argument).

Syntax

(max <numeric-expression>+)

Example

CLIPS> (max 3.0 4 2.0)
4
CLIPS>


next up previous