When is a number an integer?

This post poses a seemingly very simple question:
“When is a number an integer?”
and very quickly evolves to provide a delightful exposition of what it means when someone answers with “it depends”.
My vote is that the most intuitive and least-surprising approach is x%%1==0.

Leave a Reply

Your email address will not be published. Required fields are marked *