add two is_float methods