DgsRoundUp

From Multi Theft Auto: Wiki
Revision as of 09:45, 3 May 2018 by Thisdp (talk | contribs) (Created page with "{{Client function}} __NOTOC__ This function returns rounded number from the inputed value. For example: 1.1 -> 1 1.5 -> 2 ==Syntax== <syntaxhighlight lang="lua"> intege...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns rounded number from the inputed value.

For example:

1.1 -> 1

1.5 -> 2

Syntax

integer/float dgsRoundUp ( integer/float input [, integer point ] )