math.ceil

From GMod Wiki

Jump to: navigation, search
Function
Syntax math.ceil( Float value )
Where is this used?
Description:
Returns value rounded up to the nearest whole number.
Returns: Integer
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.ceil]Math.ceil [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionRounds up the given number.
Used onNewerShared.png
Code
print(math.ceil(0.2))
Output1
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox