![Programming tip: Avoid testing floating-point values for equality](https://blogs.sas.com/content/iml/files/2017/01/AdvancedAnalytics-2.png)
No matter what statistical programming language you use, be careful of testing for an exact value of a floating-point number. This is known in the world of numerical analysis as "10.0 times 0.1 is hardly ever 1.0" (Kernighan and Plauger, 1974, The Elements of Programming Style). There are many examples