|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-31 13:35 UTC] sniper@php.net
[2003-07-31 13:52 UTC] jeff at tmtrading dot com
[2003-07-31 14:01 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 17:00:01 2025 UTC |
Description: ------------ When I try to test equality using these numbers php incorrectly returns false. This is a serious problem as we are developing a e-cart in php. Reproduce code: --------------- $all = 0.92; $asum = 0.71; $bsum = 0.21; if($all == ($asum + $bsum)) { print "TRUE\n"; } else { print "FALSE\n"; } Expected result: ---------------- TRUE Actual result: -------------- FALSE