If these are heights of people, it's seriously unlikely to matter
.
Taylor - what Stephan's getting at (I assume) is that if the value of
feet gets very large,
feet*12 could possibly get too large to fit into an
int variable. In that case you'll get an "overflow", and unexpected results. Converting it to a
long first, and then only converting the final value back to an
int, will avoid that problem in some cases. But not all (e.g.
feet very large and
h.feet very small), so if there was any danger of overflow that I'd actually go back to comparing them separately.