add back _is_float
Merge pull request #764 from Cadair/master

add back _is_float