function

isfloat . string . sncode

VERSIONlatest Checks if the argument is a float number.

ISFLOAT

NAME

isfloat - Checks if the argument is a float number.

SYNOPSIS

isfloat(variable);

DESCRIPTION

This function is used to determine if the argument is a float number.

A float number start with an optional + or - followed by an optional number followed by a dot '.' followed by 0 or more numbers.

EXAMPLES

isinteger("a56");
isfloat("45.65");
isfloat(".65");
isfloat("4.");
isfloat("4");
isfloat("+4..");
isfloat("+.");
isfloat(".");
isfloat("");
isinteger("");
        
return 

res=falsefalsetruetruetruetruefalsefalsefalsefalsefalse.

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>