Re: If value is odd or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jochem Maas wrote:
Jonas Rosling wrote:
Hi all,
is there any easy why to check if a value is odd or not?

ignore every answer that doesn't use the % operator.


Thanks // Jonas


ie my answer! I think the % operator is the best way, but there was nothing wrong with the answer I gave in that it would let you know whether the value is odd or not. But, I guess being not as clever as the other guys means I better go... sob sob....

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux