note 20240 deleted from language.operators.bitwise by sniper

From: Date: Mon, 13 Oct 2003 00:12:01 +0000
Subject: note 20240 deleted from language.operators.bitwise by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58405@lists.php.net to get a copy of this message
Note Submitter: xkrot05@centrum.cz ---- 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).

« previous php.notes (#58405) next »