> As someone who answers quite a few quesitons on SO I'd really like to see posts that were perceived as wrongfully closed to see if I agree (haha) and also to see how to fix the system.
This person[1] was getting unexpected results when calling is_integer. According to the duplicate, the solution is that they should call is_integer... which is what they were doing. The original close voter commented 'sorry I didn't read your question properly before suggesting the dupe', but it remains closed.
The question was answered in the comments: this surprising result was due to floating point error and rounding done by the print function. However, it could not be posted as an answer, because the question was closed. I voted to reopen, but the vote failed.
Follow-up: Somebody started another reopen vote shortly after I linked the question here. It slowly accumulated four votes to reopen. However, those votes have now expired, so the question will remain closed.
This person[1] was getting unexpected results when calling is_integer. According to the duplicate, the solution is that they should call is_integer... which is what they were doing. The original close voter commented 'sorry I didn't read your question properly before suggesting the dupe', but it remains closed.
The question was answered in the comments: this surprising result was due to floating point error and rounding done by the print function. However, it could not be posted as an answer, because the question was closed. I voted to reopen, but the vote failed.
[1]: https://stackoverflow.com/q/49847677/331041
EDIT: The share link I posted takes me to a different question when I'm logged in than it does when I open in an incognito window. WTF.
EDIT2: Apparently serving completely different pages to logged-in users and logged-out users is by design. https://meta.stackoverflow.com/q/271077/
Here's a link to question [1] that should work for everybody: https://stackoverflow.com/q/49847677/331041?noredirect=1
EDIT3: It doesn't work. Sorry. I tried my best, but only logged-in users will get the correct page from the links I posted.