On Sat, Mar 14, 2015 at 9:10 AM, emile <em...@fenx.com> wrote: > (Pdb) decval > '4' > (Pdb) len(decval) > 1 > (Pdb) int(decval) > *** ValueError: invalid literal for int() with base 10: '41.700000000000003' > (Pdb) > > > Any ideas?
What's type(decval) tell you? I suspect you may have something other than a string, even though it looks like a string in its repr. ChrisA -- https://mail.python.org/mailman/listinfo/python-list