blob: 375f81caa7e4d9cc0385321a77741c3c1ad2b70a [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 float floor(float arg)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Round the <arg>ument downwards the nearest whole number, returning
6 that value. If the <arg>ument value is an integer, the result will
7 be that value, converted to float.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009EXAMPLES
10 floor(4.5) - returns 4.0
11 floor(-4.5) - returns -5.0
12 floor(5) - returns 5.0
MG Mud User88f12472016-06-24 23:31:02 +020013
Zesstra715ec202025-07-09 22:18:31 +020014HISTORY
15 Introduced in LDMud 3.2.7.
16 LDMud 3.2.9 added integers as argument values.
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020019 abs(E), ceil(E)