Did I find the right examples for you? yes no

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)
Returns True if the float is an integer.

src/n/a/nagcat-HEAD/railroad/railroad/parserrd/views.py   nagcat(Download)
    state = state_data[0][1]
    if type(state) == types.FloatType:
        state = int(state) if float.is_integer(state) else 3
        markings.append({'xaxis': {'from': state_data[0][0]},   \
                            'color': colors[state]})
    for x, y in state_data:
        if type(y) == types.FloatType:
            y = int(y) if float.is_integer(y) else 3

src/c/a/calibre-HEAD/src/calibre/ebooks/metadata/fb2.py   calibre(Download)
def _parse_pubdate(root, mi):
    year = XPath('number(//fb2:publish-info/fb2:year/text())')(root)
    if float.is_integer(year):
        # only year is available, so use 2nd of June
        mi.pubdate = datetime.date(int(year), 6, 2)

src/p/e/periodic-2.1.1/periodic/table.py   periodic(Download)
    try:
        type_ = float(type_)
        if type_.is_integer():
            return int
        if not type_.is_integer():

src/d/j/django-xml-1.3.1/djxml/xmlmodels/fields.py   django-xml(Download)
            except ValueError:
                value = float(value)
                if not value.is_integer():
                    raise
                else:

src/g/e/geogit-py-0.8/src/geogitpy/cliconnector.py   geogit-py(Download)
def _tostr(v):
    try:
        d = float(v)
        if d.is_integer():
            return str(int(d))

src/g/e/geogit-py-HEAD/src/geogitpy/cliconnector.py   geogit-py(Download)
def _tostr(v):
    try:
        d = float(v)
        if d.is_integer():
            return str(int(d))

src/d/j/django-xml-HEAD/djxml/xmlmodels/fields.py   django-xml(Download)
            except ValueError:
                value = float(value)
                if not value.is_integer():
                    raise
                else:

src/t/o/tornado-redis-2.4.17/tornadoredis/client.py   tornado-redis(Download)
def reply_number(r, *args, **kwargs):
    if r is not None:
        num = float(r)
        if not num.is_integer():
            return num

src/s/y/Sypy-HEAD/objspace/std/test/test_floatobject.py   Sypy(Download)
    def test_isinteger(self):
        assert (1.).is_integer()
        assert not (1.1).is_integer()
        assert not float("inf").is_integer()
        assert not float("nan").is_integer()

src/s/h/shedskin-HEAD/tests/199.py   shedskin(Download)
 
# float.is_integer
print 7.7.is_integer()
print 7.0.is_integer()
a = 3.14
print a.is_integer(), (a+a).is_integer()
print 2*a.is_integer()