chickadee » scheme » max

(max x[1] x[2] ...)procedure
(min x[1] x[2] ...)procedure

These procedures return the maximum or minimum of their arguments.

(max 3 4)                      ===>  4    ; exact
(max 3.9 4)                    ===>  4.0  ; inexact

Note: If any argument is inexact, then the result will also be inexact (unless the procedure can prove that the inaccuracy is not large enough to affect the result, which is possible only in unusual implementations). If min or max is used to compare numbers of mixed exactness, and the numerical value of the result cannot be represented as an inexact number without loss of accuracy, then the procedure may report a violation of an implementation restriction.