math.ceil

From GMod Wiki

Revision as of 17:45, 17 August 2011 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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