blob: f5893f833f474477134812b98551edf7cb57f657 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 float ceil(int|float arg)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Round the <arg>ument upwards 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 ceil(4.5) - returns 5.0
11 ceil(-4.5) - returns -4.0
12 ceil(4) - returns 4.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 allowed 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), floor(E)