note 19850 added to function.bcmod
| From: | colin at ximension dot com | Date: | Wed, 13 Mar 2002 06:30:16 +0000 |
| Subject: | note 19850 added to function.bcmod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27707@lists.php.net to get a copy of this message | ||
A better way for checking odd would be a bit wise AND with the lsb
if ($var&1)
{
//todo
}
--
http://www.php.net/manual/en/function.bcmod.php
http://master.php.net/manage/user-notes.php?action=edit+19850
http://master.php.net/manage/user-notes.php?action=delete+19850
http://master.php.net/manage/user-notes.php?action=reject+19850