Shashwat Anand wrote: > How can it be done ? >>> import decimal, math >>> D = decimal.Decimal >>> decimal.getcontext().prec = 100 >>> sum(D(1) / D(math.factorial(i)) for i in range(1000)) Decimal('2.718281828459045235360287471352662497757247093699959574966967627724076 630353547594571382178525166428')