By Antony


2019-07-11 19:04:23 8 Comments

Why when decreasing decimal part after 10.0000000000000008 the comparison returning True?

>>> 10 == 10.000000000000001
False
>>> 10 == 10.0000000000000001
True

0 comments

Related Questions

Sponsored Content

21 Answered Questions

16 Answered Questions

[SOLVED] What are metaclasses in Python?

57 Answered Questions

[SOLVED] Calling an external command in Python

12 Answered Questions

[SOLVED] How can I make a time delay in Python?

10 Answered Questions

[SOLVED] Does Python have a string 'contains' substring method?

22 Answered Questions

[SOLVED] How do I parse a string to a float or int?

33 Answered Questions

[SOLVED] How to get the current time in Python

  • 2009-01-06 04:54:23
  • user46646
  • 2837561 View
  • 2457 Score
  • 33 Answer
  • Tags:   python datetime time

30 Answered Questions

[SOLVED] How do I check if a string is a number (float)?

31 Answered Questions

[SOLVED] "Least Astonishment" and the Mutable Default Argument

28 Answered Questions

[SOLVED] Finding the index of an item given a list containing it in Python

  • 2008-10-07 01:39:38
  • Eugene M
  • 3328872 View
  • 2746 Score
  • 28 Answer
  • Tags:   python list indexing

Sponsored Content