Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
+ 1

Floating point in python

In math: 0.1 + 0.2 = 0.3 In python: 0.1 + 0.2 == 0.3 -> False Why?!!

python
30th Apr 2019, 11:47 AM
Ameer Abdulaziz
Ameer Abdulaziz - avatar
1 Answer
+ 5
Please use search bar before asking. https://www.sololearn.com/discuss/1392436/?ref=app https://www.sololearn.com/discuss/1341591/?ref=appa https://www.sololearn.com/discuss/1033323/?ref=app https://www.sololearn.com/discuss/1344720/?ref=app https://www.sololearn.com/discuss/1477626/?ref=app https://www.sololearn.com/discuss/1733175/?ref=app https://www.sololearn.com/discuss/1524665/?ref=app https://www.sololearn.com/discuss/1288636/?ref=app https://www.sololearn.com/discuss/374762/?ref=app https://www.sololearn.com/discuss/504630/?ref=app https://www.sololearn.com/discuss/1156419/?ref=app https://www.sololearn.com/discuss/1093191/?ref=app https://www.sololearn.com/discuss/174005/?ref=app https://www.sololearn.com/discuss/711763/?ref=app https://www.sololearn.com/discuss/1034097/?ref=app https://www.sololearn.com/discuss/860019/?ref=app https://www.sololearn.com/discuss/72830/?ref=app
30th Apr 2019, 11:49 AM
Maneren
Maneren - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
4 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Python intermediate help with dictionaries
0 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
Fill in the blank to declare a static variable.
0 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes