Как пробовать модуль Decimal?
In [2]: import decimal In [3]: d = decimal.Decimal('0.123456789101997') In [4]: print d 0.123456789101997