Difference between revisions of "Roundf"

From King Arthur's Gold Wiki
Jump to: navigation, search
 
Line 2: Line 2:
 
Rounds the given float to the nearest whole number, as a float.
 
Rounds the given float to the nearest whole number, as a float.
 
</onlyinclude>
 
</onlyinclude>
 +
 +
This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
float Roundf(float x)
+
float Maths::Roundf(float x)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Latest revision as of 23:25, 6 September 2012

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


This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.

float Maths::Roundf(float x)