Garry's Mod Wiki

Garry's Mod Wiki

  number math.ceil( number number )

Description

Ceils or rounds a number up.

Arguments

1 number number
The number to be rounded up.

Returns

1 number
ceiled numbers

Example

Round pi.

print(math.ceil(math.pi))
Output: 4

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...