Answer the question
In order to leave comments, you need to log in
How to avoid inaccuracies when counting different expressions in Python?
The essence of the problem is that there are many unpleasant and subtle points when counting different floating point numbers.
Well, for example, there is a rather trivial probability problem:
The store has two payment terminals. Each of them can be faulty
with a probability of 0.3, regardless of the other terminal. Find the probability that
at least one payment terminal is working.
P = (0.3 * 0.7) + (0.7 * 0.3) + (0.7 * 0.7)
0.9099999999999999
). Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question