Frank Millman <fr...@chagford.com> writes:

> int(float(x)) does the job, and I am happy with that. I was just
> asking if there were any alternatives.

int(float(s)) will corrupt integers larger than 2**53, should you ever
need them.  int(decimal.Decimal(s)) works with numbers of arbitrary
size.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to