Код: Выделить всё
pi=3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
U = 314
D = 100
print(U/D,U,D)
best=3.0
while True:
if abs((U+1)/D-pi)
Подробнее здесь: [url]https://stackoverflow.com/questions/78300490/why-does-python-limit-the-number-of-decimals[/url]