Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@mushroom_soup @ceo_of_monoeye_dating @PunishedD @sjw Take Pi for example. Pi is irrational, and we "discover" more digits by doing more and more precise approximations. Theoretically, it's impossible to store the number Pi on a computer because it has infinite digits. Therefore, at some point you have to round it, introducing error. That is the floating-point error problem in a nutshell. And that is why you will see this issue in many programming languages where it thinks eg. 7/3 - 4/3 - 1 = 0.000....01