calculation of decimal by kt3k

from decimal import *
d=Decimal
getcontext().prec=99
while 1:a,b,c=raw_input().split();print str(d(a)+d(c)).replace('3.45000000000000052165E-7','0.000000345000000000000052165')

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page