Mar-07-2017, 09:10 AM
(Mar-06-2017, 07:14 PM)micseydel Wrote: It's because the underlying math is done in binary. Consider 10 / 3, you can't represent it precisely with decimal notation. The same problem happens here, except that 1.4 can't be precisely in binary.
If it's a problem in your code, the typical way to solve the problem is to have a tolerance. Check that the result is sufficiently small. 10**(-16) is very small.
Thank you! Got it!