note 20240 added to language.operators.bitwise
| From: | xkrot05 at centrum dot cz | Date: | Wed, 27 Mar 2002 13:17:36 +0000 |
| Subject: | note 20240 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28270@lists.php.net to get a copy of this message | ||
Be careful with using Bitwise operators with Floating point numbers.
You can set bits up to 31th bit (including) - in this case the value is internally stored as
integer.
When you try to set 32th bit or higher the variable changes its type to floating point number. When
you try to test any bit of floating point variable you always get the same result - bit is set to 1
(it behaves like all 64 bits are set to 1).
--
http://www.php.net/manual/en/language.operators.bitwise.php
http://master.php.net/manage/user-notes.php?action=edit+20240
http://master.php.net/manage/user-notes.php?action=delete+20240
http://master.php.net/manage/user-notes.php?action=reject+20240