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...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
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 === |
Latest revision as of 12:38, 14 June 2015
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) );