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

Page Links


Special Pages


Wikis

?

Render Time: 37ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 12
Render Body 0
Render Sidebar 15