Re: If value is odd or not
| From: | Jochem Maas | Date: | Fri, 02 Jun 2006 13:58:27 +0000 |
| Subject: | Re: If value is odd or not | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237267@lists.php.net to get a copy of this message | ||
IG wrote:
Jochem Maas wrote:not just your answer.Jonas Rosling wrote:ie my answer! I think the % operator is the best way, but there wasHi 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
nothing wrong with the answer I gave in that it would let you knowdidn't say there was anything wrong with it, just that Jonas should modulos - it's the best option and the fastest - an added bonus.
whether the value is odd or not. But, I guess being not as clever as the other guys means I better go... sob sob....suit yourself :-)