note 30198 added to language.types.float

From: Date: Mon, 10 Mar 2003 12:22:41 +0000
Subject: note 30198 added to language.types.float
Groups: php.notes 
Request: Send a blank email to php-notes+get-45064@lists.php.net to get a copy of this message
Never never never compare floats for equality! Even a >= is asking too much of any binary computer (that's pretty much all of them ;-). It will sometimes work, but the best you can hope for is a subtle bug that will occasionally cause non-deterministic behaviour. Floats must only ever be used for proper inequalities. -- http://www.php.net/manual/en/language.types.float.php http://master.php.net/manage/user-notes.php?action=edit+30198 http://master.php.net/manage/user-notes.php?action=delete+30198 http://master.php.net/manage/user-notes.php?action=reject+30198

« previous php.notes (#45064) next »