Yes, you can compare them, you can do math on them without terribly much regard for which is which, in most cases. But only most. The big bugaboo is that you can check for f etc. but should not check for f==i. An integer and a float that 'should' be identical in value are not necessarily identical.