Bug? by Davi Bastos Costa - Wednesday, 16 September 2015, 6:31 PM Number of replies: 1 A seguir um trecho de código executado no idle: >>> valor=15.15>>> decimal=valor-int(valor)>>> decimal0.15000000000000036>>> int(valor)15>>> valor15.15>>>Porque o resultado não é 0.15? Permalink Reply In reply to Davi Bastos Costa Re: Bug? by Otávio Vasques - Wednesday, 16 September 2015, 7:28 PM Tive problemas também com essas coisas https://docs.python.org/3.5/tutorial/floatingpoint.html Permalink Show parent Reply
In reply to Davi Bastos Costa Re: Bug? by Otávio Vasques - Wednesday, 16 September 2015, 7:28 PM Tive problemas também com essas coisas https://docs.python.org/3.5/tutorial/floatingpoint.html Permalink Show parent Reply