--- from: http://rosettacode.org/wiki/Test_integerness