Difference between revisions of "IsValid"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns true if the given float is a valid number (not NaN or infinity) or not. </onlyinclude> <syntaxhighlight lang="cpp"> bool isValid(float x) </syntaxhighlight>...")
 
 
Line 2: Line 2:
 
Returns true if the given float is a valid number (not NaN or infinity) or not.
 
Returns true if the given float is a valid number (not NaN or infinity) or not.
 
</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">
bool isValid(float x)
+
bool Maths::isValid(float x)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Latest revision as of 23:24, 6 September 2012

Returns true if the given float is a valid number (not NaN or infinity) or not.


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

bool Maths::isValid(float x)