DEV Community

Mayemene Fomene Jean Vladimir
Mayemene Fomene Jean Vladimir

Posted on


Floating Point Imprecision

What is Floating point imprecision?

These two expressions in python are suppose to produce the same result. But why don't they do that?

>>> 7 / 3 * 3

>>> 1 / 3 * 7 * 3
Enter fullscreen mode Exit fullscreen mode

When should you be careful about floating point imprecision?

Top comments (0)

Advice For Junior Developers

Advice from a career of 15+ years for new and beginner developers just getting started on their journey.