System::ceil: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
I'm guessing this rounds a float value up to the next whole number, and FLOOR rounds it down
I'm guessing this rounds a float value up to the next whole number, and FLOOR rounds it down
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">system.ceil(value);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.system.ceil(value);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''value:''' float
*'''value:''' float
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{System_function_c}}
{{System_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:32, 6 May 2017

I'm guessing this rounds a float value up to the next whole number, and FLOOR rounds it down

Syntax

mp.game.system.ceil(value);

Required Arguments

  • value: float

Return value

  • int

Example

// todo

See also

Template:System s function c