math.ceil

From Garry's Mod
Jump to: navigation, search
 math.ceil( )

Contents

Description

Ceils or rounds a number up.

Arguments

number number

The number to be rounded up.

Returns

number

ceiled numbers

Examples

Example

Round pi.

print(math.ceil(math.pi))

Output:

4
Personal tools
Navigation