Core Function isFloat

From Sputnik Wiki
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