note 22265 added to language.types.float

From: Date: Wed, 12 Jun 2002 14:25:52 +0000
Subject: note 22265 added to language.types.float
Groups: php.notes 
Request: Send a blank email to php-notes+get-31742@lists.php.net to get a copy of this message
Anyhow, the way PHP treats floating points isn't properly. Why doesn't var_dump() or print_r show me the real value of a floating var? No one expects this behaviour from a programming language. If I say some var should have the value 0.7, it should,not become 0.6999... and keep telling me that the value is 0.7. -- http://www.php.net/manual/en/language.types.float.php http://master.php.net/manage/user-notes.php?action=edit+22265 http://master.php.net/manage/user-notes.php?action=delete+22265 http://master.php.net/manage/user-notes.php?action=reject+22265

« previous php.notes (#31742) next »