REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 3-Aug-2010 Edit History |
Returns the greater of the two values.
Arguments:
value1 [scalar! date! series!]
value2 [scalar! date! series!]
See also:
Returns the maximum of two values.
print max 0 100
100
print max 0 -100
0
print max 4.56 4.2
4.56
The maximum value is computed by comparison, so MAX can also be used for non-numeric datatypes as well.
print max 1.2.3 1.2.8
1.2.8
print max "abc" "abd"
abd
print max 12:00 11:00
12:00
print max 1-Jan-1920 20-Feb-1952
20-Feb-1952
Using MAX on xy pairs will return the maximum of each X and Y coordinate separately.
print max 100x10 200x20
200x20
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |