#30290 [Opn->Bgs]: float comparison doesn't work

From: Date: Thu, 30 Sep 2004 12:16:41 +0000
Subject: #30290 [Opn->Bgs]: float comparison doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66929@lists.php.net to get a copy of this message
ID: 30290 Updated by: derick@php.net Reported By: tech at mediaforest dot net -Status: Open +Status: Bogus Bug Type: *Math Functions Operating System: Linux Debian 3 PHP Version: 4.3.8 New Comment: Floating point values have a limited precision. Hence a value might not have the same string representation after any processing. That also includes writing a floating point value in your script and directly printing it without any mathematical operations. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2004-09-30 12:43:56] tech at mediaforest dot net Description: ------------ When comparing two floats php find them different Bug already reported but not solved : Bug #17984, Bug #25936, Bug #17282, Bug #23780, ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30290&edit=1

« previous php.bugs (#66929) next »