blob: 36922ddc679f287f08297e961cce83fed23757fb [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 string|bytes min(string|bytes arg, ...)
Zesstrad59c3892019-11-28 20:53:39 +01003 string|bytes min(string|bytes *arg_array)
Zesstra715ec202025-07-09 22:18:31 +02004
Zesstrad59c3892019-11-28 20:53:39 +01005 int|float min(int|float arg, ...)
6 int|float min(int|float *arg_array)
MG Mud User88f12472016-06-24 23:31:02 +02007
Zesstra715ec202025-07-09 22:18:31 +02008DESCRIPTION
9 Determine the minimum value of the <arg>uments and return it.
10 If min() is called with an array (which must not be empty) as only
11 argument, it returns the minimum value of the array contents.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013EXAMPLES
14 min(1) - returns 1
15 min(1, -1.1) - returns -1.1
16 min("foo", "bar") - returns "bar"
17 min( ({ "foo", "bar" }) ) - returns "bar"
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 max(E)