View Single Post
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 03-02-2017 , 09:25   Re: how to create isStringFloat?
Reply With Quote #5

PHP Code:
stock bool:is_str_float(const string[])
{
    new 
cip;
    while(
is_char(string[i++]))
    {
        if(!
isdigit(c))
        {
            if(
!= '.' || p)
            {
                return 
false;
            }
            
            
1;
        }
    }
    
    return (
1);


Oh, so just like my code. thanks
grs4 is offline