Posts by gustabtc • 3 points
1 post
-
0
votes1
answer40
viewsQ: How to prevent Python from considering very close numbers equal?
I made this algorithm to test how Python compares nearby numbers: x = 2.5 # número arbitrário que escolhi para fazer os testes y = float(input('Insira o Y ')) # print('X > Y = {}'.format(x >…