Core Function isFloat

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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)      );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox