Difference between revisions of "Roundf"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Rounds the given float to the nearest whole number, as a float. </onlyinclude> <syntaxhighlight lang="cpp"> float Roundf(float a) </syntaxhighlight> [[Category:Scr...")
 
Line 3: Line 3:
 
</onlyinclude>
 
</onlyinclude>
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
float Roundf(float a)
+
float Roundf(float x)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Revision as of 18:36, 22 August 2012

Rounds the given float to the nearest whole number, as a float.

float Roundf(float x)