Garry's Mod Wiki

math.ceil

  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