Difference between revisions of "Floor"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) (Created page with "<onlyinclude> Returns the largest integral value that is not greater than the given number. </onlyinclude> <syntaxhighlight lang="cpp"> float Floor(float x) </syntaxhighlight> [...") |
Shadlington (Talk | contribs) |
||
Line 2: | Line 2: | ||
Returns the largest integral value that is not greater than the given number. | Returns the largest integral value that is not greater than the given number. | ||
</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 Floor(float x) | + | float Maths::Floor(float x) |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Global Functions]] | [[Category:Global Functions]] |
Latest revision as of 22:24, 6 September 2012
Returns the largest integral value that is not greater than the given number.
This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.
float Maths::Floor(float x)