Just tested it - it's not testing for an integer, but for a (finite) number. So `2.0` or even `2.1` are still valid.