Python isdecimal()

How can I use isdecimal() on a string returned by PropertyListBox. I can’t get this code to work for some reason.

    if results:
        for number in results:
            number = unicode(number, "utf-8")
            if not number.isdecimal():
                print 'Enter numbers only!'
                return(None)
        results = map(float, results)

Thanks Mark

Edited because the conversion from string to float didn’t work. The above code works on whole numbers but fails on decimal numbers.

OK finally figured out decimal is not the same as float. Here’s what I came up with.

    if results:
        for number in results:
            try:
                float(number)
            except:
                print 'Enter numbers only!'
                return(None)
        results = map(float, results)