• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
0

Tell me why

Tell me please, why those prints give False. print(0.1+0.2 == 0.3) print(0.1+0.7 == 0.8) I checked these additions and the results are respectively 0.30000000000000004 and 0.799999999999999999. Thats why it is False. But still can't understand why

python
29th Jul 2019, 11:58 AM
guest013
guest013 - avatar
1 Resposta

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Hello World!
0 Votes
What is wrost mistake that mostly people made while learning coding?
0 Votes
I'm lost with JavaScript (document.getElementById(".") And clearly making mistakes, Can someone help, I thought I had it but no.
0 Votes
What’s the actual difference between MB and GB in real-world usage?
1 Votes
Script file names
0 Votes
How to put multiple inputs in python?
1 Votes
Html learn
1 Votes
Je cherche des gens qui parle français pour apprendre le langage c
0 Votes
What can I do after learning python and how to create amazing codes. And how many times it would take to be a good programmer😅
0 Votes
I wish Ruby back in the course list
1 Votes