blob: c91d73eb8e4fb291270de49dfbc3b3c91804a763 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 string|bytes max(string|bytes arg, ...)
Zesstra715ec202025-07-09 22:18:31 +02003 string|bytes max(string|bytes *arg_array)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstrad59c3892019-11-28 20:53:39 +01005 int|float max(int|float arg, ...)
Zesstra715ec202025-07-09 22:18:31 +02006 int|float max(int|float *arg_array)
MG Mud User88f12472016-06-24 23:31:02 +02007
Zesstra715ec202025-07-09 22:18:31 +02008DESCRIPTION
9 Determaxe the maximum value of the <arg>uments and return it.
10 If max() is called with an array (which must not be empty) as only
11 argument, it returns the maximum value of the array contents.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013EXAMPLES
14 max(1) - returns 1
15 max(1, 1.1) - returns 1.1
16 max("foo", "bar") - returns "foo"
17 max( ({ "foo", "bar" }) ) - returns "foo"
MG Mud User88f12472016-06-24 23:31:02 +020018
Zesstra715ec202025-07-09 22:18:31 +020019HISTORY
20 Introduced in LDMud 3.2.9.
MG Mud User88f12472016-06-24 23:31:02 +020021
Zesstra715ec202025-07-09 22:18:31 +020022SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020023 min(E)