[Tutor] Integer?

Kent Johnson kent37 at tds.net
Wed Dec 6 04:24:05 CET 2006


Eli Zabielski wrote:
> How can I check if a variable is an integer?

Luke and John have answered your question, but we should also ask, why 
do you want to do that? Explicit type testing is a code smell, perhaps 
there is a better way to do what you want.

Kent



More information about the Tutor mailing list