Why not ($foo==int($foo)) to test it or $foo=$int($foo) to force it? Matt Elrod }> I have a web CGI that I'm modifying. I want to make it so that you can }> only input an integer number. So if anyone tries to type 10.44, it is }> detected by my CGI and refused.