Added isFloat method.