Core Function isFloat
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> isFloat( <expression> ) </pre> === Description === Check if string contains a floating point and could be converted. === Parameters === ==== expression ==== The string...") |
(→Remarks) |
||
Line 21: | Line 21: | ||
=== Remarks === | === Remarks === | ||
− | + | This will also be true is the string contains a valid numeric expression you could [[Core Function isDigit|isDigit( <expression> )]] if you just want to check for numeric expression. | |
=== Example === | === Example === |
Revision as of 16:01, 19 August 2013
isFloat( <expression> )
Contents |
Description
Check if string contains a floating point and could be converted.
Parameters
expression
The string to use.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
This will also be true is the string contains a valid numeric expression you could isDigit( <expression> ) if you just want to check for numeric expression.
Example
$str = "The quick brown fox"; MsgBox( isFloat($str) );