Did I find the right examples for you? yes no

# gristle.field_type.is_float

All Samples(28)  |  Call(28)  |  Derive(0)  |  Import(0)
```Returns True if the input consists soley of digits and represents a
float rather than character data or an integer.
44.55   is True
'33.22' is True
6       is False
'3'     is False
'-3'    is False
'4,333' is False
'\$3'    is False
''      is False(more...)
```

```        def is_float(value):
""" Returns True if the input consists soley of digits and represents a
float rather than character data or an integer.
44.55   is True
'33.22' is True
6       is False
'3'     is False
'-3'    is False
'4,333' is False
'\$3'    is False
''      is False
'b'     is False
None    is False
Test coverage:
- complete, via test harness
"""
try:
i            = float(value)
fract, dummy = math.modf(i)
if fract == 0:
return False
else:
return True
except ValueError:
return False
except TypeError:
return False
```

```        elif typer.is_integer(key):     # will be ignoring these
freq['number'] += 1
elif typer.is_float(key):       # will be ignoring these
freq['number'] += 1
elif key.islower():
```

```        elif typer.is_integer(key):     # will be ignoring these
freq['number'] += 1
elif typer.is_float(key):       # will be ignoring these
freq['number'] += 1
elif key.islower():
```

```    def test_is_float_basics(self):
assert mod.is_float('33.22')
assert mod.is_float(44.55)
assert mod.is_float(3)           is False
assert mod.is_float(0.0)         is False
assert mod.is_float(0)           is False
```

```    def test_is_float_basics(self):