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: 45ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 23
Render Body 0
Render Sidebar 12