note 22265 rejected from language.types.float by torben

From: Date: Wed, 12 Jun 2002 23:27:10 +0000
Subject: note 22265 rejected from language.types.float by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-31774@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.

« previous php.notes (#31774) next »